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
What tags do you need to add within the asp:datagrid tags to bind columns manually? How?
What is base class of button control in .net?
What is master page in dtp?
Explain difference betn dataset and recordset?
Describe the Server Control Events of ASP.NET?
What are strong names?
How can we call webservices in Banking Applications? and where we are using it?
What is the difference between a default skin and a named skin?
What does asp in asp.net stand for?
Where code pages are used?
What is the difference between custom controls and user controls?
Explain why datareader is useful?
Explain advantages of caching?
What is autopostback true?
How to unit test Web API?