Asp.net - How to find last error which occurred?
Answer / p.ramakrishna
Exception LastError;
String ErrMessage;
LastError = Server.GetLastError();
if (LastError != null)
ErrMessage = LastError.Message;
else
ErrMessage = "No Errors";
Response.Write("Last Error = " + ErrMessage);
| Is This Answer Correct ? | 14 Yes | 0 No |
Can I combine classic asp and asp.net pages?
When do you set "<IDENTITY impersonate="true" />" ?
Define transparent caching with aop?
Using shadow variable is good or bad for application?
What is the difference between Server.Transfer and Response.Redirect?
What is the difference between session and viewstate?
Why select Web API?
Where the assembly is stored in asp.net?
Explain what the contents of cookie?
For a server control, you need to have same properties like color maxlength, size, and allowed character throughout the application. How do you handle this?
What property must you set, and what method must you call in your code, in order to bind the data from a data source to the Repeater control?
I have developed a web application in asp.net 2.0 with Access as back end i am trying to gereate report/export data in excel. After hosting the site i am not getting any error or such exported excel file. but using the source code from my system it works fine. Could any one tell me why it is happening and what is its solution.
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)