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
Where you store Connection string in "Web.Config" file in ASP.NET?
How do you secure your connection string information?
How would you turn off cookies on a page of a website?
How do u declare static variable and how it is declared and what is its lifetime?
Explain difference between dataset and recordset?
Why is string called immutable data type?
How will create assesblies at run time?
What is mvc in asp.net tutorial? : Asp.Net MVC
How you can access the values from the Repeater control in ASP.NET?
Where sessions are stored in asp.net?
What is the mvc model?
Is razor a programming language?
Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc
What are the different types of events are occured when a client requests an ASP.NET page from IIS server?
What is a 1x1 pixel?