|
|
Give some Example
derived class method using Abstarct class
|
|
|
|
|
|
Hi All,
I Am using
Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application();
Microsoft.Office.Interop.Word.Document doc = new Microsoft.Office.Interop.Word.Document();
In Visual studio 2010(Framework 4.0)
I created application which finds and replace text in word document.
This works in my developement machine but in production I am getting below error
Office is already installed in my machine.
ERROR:
Retrieving the COM class factory for component with CLSID {00020906-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {00020906-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
Ramkumar
("When you build bridges you can keep crossing them. ")
http://ramkumarishere.blogspot.com
|
|
|
|
|
Ramkumar_S wrote: Office is already installed in my machine.
But not on the production server.
|
|
|
|
|
Even in my Production server ..Officee is Installed.
Thanks for your response
Ramkumar
("When you build bridges you can keep crossing them. ")
http://ramkumarishere.blogspot.com
|
|
|
|
|
hi to all,
Display multiple columns in Gridview from One Column of SQL table.
Thanks in advance,
Sundaramoorthy
|
|
|
|
|
Care to elaborate what does your question means?
I can define 10 columns in my grid and bind all of them to one column of SQL table. Possible and easy, but is that what you want? I doubt.
|
|
|
|
|
No,
I have one column(like 1 to 100 values)in table.
1
2
3
4
5
.
.
...
Now I need to
Display multiple columns in Gridview
like
1 6 ...
2 7
3 8
4 9
5 10
|
|
|
|
|
You can do as :
Select a.col1, b.col1 from table a, table b
|
|
|
|
|
I would like to know how to modify a sitemap and/or change some C# 2010 code to not allow certain users access to this new web page.
I am basically adding a new web form page to an existing C#.net 2010 application. I am adding some web pages that will be displayed from the main page.
Right now the contractor that setup this application, had 'shells' for the modules that will be added at different points. When the existing web page displays that I am going to add to this website, the page is pointed to a 'mapped url' that displays 'the site is under construction'.
In the web.config file, there is a sitemap that says who access the web page. I tried to give the sitemap a user role that does not exist in the active directory and the web page still displayed.
Thus can you tell me and/or point me to a reference on how to modify the sitemap and/or add some code to the application so only users under a certain role have access this this new web page?
|
|
|
|
|
To the best of my knowledge, the sitemap.xml is just a xml file that contains sitemap nodes.
You can't control access to files and folders through it.
You have to write code for each page, to control access.
So let's say you have 5 levels of security
On login, you would add
Context.Session.Add("security", 5)
And in the page, on page.init, your code would say
If Not Context.Session("security") > 3 Then
Context.response.redirect("security.aspx")
End If
|
|
|
|
|
I agree with this.
You cannot control security using xml but you can check variables and then redirect accordingly.
Another option would be to use a database and check the users security level and that will determine what pages they can view.
Kind Regards
Julian Mummery
|
|
|
|
|
Hi
I am making a website in ASP.NET on which i want to show food menu. It can be any no pages. I want to save it in database and show it on web page with page turn. What is the best way to do it. I know how to upload single file to database and show
it on web page.
Thanks in advance
Inderjeet Kaur
Inderjeet Kaur
Sr. Software Engg
|
|
|
|
|
See here[^]; please post your question in one forum only.
|
|
|
|
|
We need your help to solve printing issue with Card Printer (Zebra P430i)
Card Printer is directly connected to Server and it is working in LAN.
From the web application we are directly printing to the server as in the sample code provided (By invoking zebra DLL).
Copied the DLL files to system folder.
The printer is working fine from client and server if we are doing test print or running using visual studio.
But not woking through the IIS.
I am getting the following exception from IsPrinterReady()
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Is there any other method to print the card (printer in client/server) using c# and ASP.net?
Please help us to sort out the issue.
HELP HELP HELP PLEASE
|
|
|
|
|
Hi to all,
I have more than 100 values in one table column(Database).I need to show in gridview to those values in ten rows(like 10 rows and 10 columns).
Is it possible or not.
Thanks in Advance,
Sundaramoorthy
|
|
|
|
|
Your question is not quite clear. Please rephrase and elaborate a little more.
|
|
|
|
|
I think I know what you are trying to say.
I do not think you can do this from the data in one column.
What you might try doing is create a temp table with which mirrors the layout of your gridview and then populating the rows and columns from that.
Kind Regards
Julian Mummery
|
|
|
|
|
Use Datalist for your requirement..Without any more efforts Datalist fulfills your requirement.
<asp:DataList ID="Datalist1" runat="server" RepeatColumns="10" RepeatDirection="Horizontal" >
</asp:DataList>
Bind the Datalist same as Gridview through Dataset or Datatable or as you like.
Thanks
|
|
|
|
|
Hi, I am using telerik grid i need to compare two or more person details which control i need to use in asp.net and i need check box control in rows.
|
|
|
|
|
On one side you say that you use telerik grid but on the other hand you ask for asp.net control! You can use Grid with checkbox or datalist with checkbox for this if you want to use standard ASP.NET control.
|
|
|
|
|
I am suppose to enhance an existing C# web form 2010 application. On the current web form page that I am suppose to enhance, the users enter some informatiion on the web page that updates one table in a sql server 2008 database.
Now the table has been expanded to contain an additional 20 more columns. When the user clicks the existing 'submit' button, I am going to add a formview control that will be displayed on the lower part of the web page. The user will enter more information on the formview control and the one sql server table will be updated.
I only want one update to the database table.
Thus my questions are:
1. From the exisitng asp.net table, how can I make the formview control be displayed?
2. How would I pass data fromn the asp.net web table to the formview control? Would I make the properties public for this one object?
Can you tell me how you suggest I work with the formview control?
|
|
|
|
|
Hi classy
It is very simple job to do the insert in database with formview you just need one sqldatasource control with the Insert and select statement and attach that sqldatasource control to the formview and set the mode of form view to the insert so it will work like normal form to insert record
If you have any problem about the formviw or sqldatasource let me know i am happy if i could help you.
Best of luck !!
|
|
|
|
|
How should I obtain the information that is obtained from the existing web page and pass that information along to the formview control? I do not want to update the database on the existing 'submit' button. I want to update the database when I create the new submit button that will be displayed farther down on the page?
|
|
|
|