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
Difference between using directive vs using statement?
Which protocol is used to call a web service?
What are server-side comments in ASP.NET?
Explain the path instructions in xaml?
Are xaml file compiled or built on runtime?
Explain file-based dependency and key-based dependency.
What are the disadvantages of view state?
What is inproc and outproc?
What is the maximum number of classes that can be contained in one dll file?
What are all the various Estimation Techniques available ?
I’m having some trouble with cas. How can I diagnose my problem?
What are the new features added from ASP to ASP.NET?
How do u deploy your asp.net application?
What is & in a url?
What is form submit?