Asp.net - How to find last error which occurred?
Answer Posted / 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 |
Post New Answer View All Answers
How does asp.net work?
What is strong-typing versus weak-typing?
How will create assesblies at run time?
Explain the asp.net mvc folder conventions? : asp.net mvc
What are standard controls?
What are the different ways you would consider sending data across pages in ASP (i.e between asp to asp)?
What is the use of the tag in the web.config file?
What is .net framework and what are the main components of it?
What kind of data we can store in viewstate?
Where do the cookie state and session state information be stored?
Why do we use asp.net?
What are web server controls in asp.net?
What is connection pooling and how to enable and disable connection pooling?
How asp.net mvc differs from asp.net web forms? : asp.net mvc
What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?