I have a button on an aspx file called page A. so when i click the button, page B will pop up and need to send a command to printer to print the page B, sp can somebody share the coding for me how i code the printer function ? Thanks..
so i load a page which requires a Guid on the querystring (but i chop some of the guid off) then click the button whose handler is above, and it goes to the 500.aspx page but Server.GetLastError() is always null.
note: it is suppose to go to 500.aspx on load but i disabled that to do some testing.
In this case, you need to manage to redirect to the error on your own by using the Application_Error in the Global file with the Server.Transfer method. You can see the sample code from the link:
I have a slight problem, I am developing an ASP.NET 2.0 website that uses themes (currently only one). The site theme is specified in web.config as <pages styleSheetTheme="White"/>. It was working great until I wanted to start adding RSS support. I am adapting an rss example from the Atlas wiki site starter kit. The aspx file is just an empty aspx file and the aspx.cs file generates the xml, and delivers it via Response.Write. I have used this method in previous asp.net 2.0 applications without problem, however this is my first time with themes.
My problem is this: System.InvalidOperationException: Using themed css files requires a header control on the page. (e.g. <head runat="server" />).
I tried setting EnableTheming to false for the page and had the same problem. Anyone have any ideas?
Even the very best tools in the hands of an idiot will produce something of little or no value. - Chris Meech on Idiots