I am using eGRC Archer tool which is developed in Asp.net.
In this tool we are having already developed applications.
There is a em-build feature of exporting records to PDF and RTF format. Whenever we export any record which contains images, Images are not being displayed on PDF or RTF while images are visible on webpage. Can anybody suggest that is there any setting in IIS or in WebConfig file so that images can be exported. Your suggestions are appreciated.
Well that's because images are embedded inside pdf files.
I think when you create a pdf, you have to use the physical location of the file, and not the virtual location, in order to embed the image. That should of been in the instructions for your pdf generator.
In the page, you build it like a regular webpage with the header and footer, and in the middle, you place a content placeholder object, a container that will hold that space in the seperate file you created.
default.aspx - reference the container in the master page in your content page, and content below will be injected into the master page.
<asp:ContentID="Content3"ContentPlaceHolderID="SiteMap"runat="server"><!-- Encode the Sitemap Content of the Page --><divclass="sitemap_container">
Some content such as words or pictures in your seperate file
I am looking to incorporate the Excel Like Grouping on the columns of my grid view, Can this be done using the standard .net functionalities, if not can anyone recommend a 3rd party component library with features like this.
this is my error
i change textbox at gridview to dropdownlist (tempaltefield)
string connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=DB.mdb";
OleDbConnection con = new OleDbConnection(connString);
OleDbCommand cmd = new OleDbCommand();
cmd.CommandText = "UPDATE Pay SET pay_sup_name=@pay_sup_name,pay_value=@pay_value,pay_check_No=@pay_check_No WHERE pay_id=@pay_id";
Unable to cast object of type 'System.Web.UI.LiteralControl' to type 'System.Web.UI.WebControls.TextBox
Error in itself is quite straight forward.
You are directly casting controls from Grid cells into a defined type. One of the conversion is not correct. There is a Literal control instead of a textbox. A simple use of Visual Studio debugger will tell the line of code. Once you know, just handle it properly.