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
Explain about solution explorer window?
Explain what is postback in asp. Net?
What is http protocol and how it works?
What do you mean by marshalbyref?
If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?
What is asp.net master page?
Differences between “dataset” and “datareader”.
What is the difference between “Web.config” and “Machine.Config”?
What is considered a service provider?
What are html helpers in asp.net?
How u refer webservices?
Define xmlvalidatingreader class.
How can we create custom controls in asp net?
What is paging in context of Memory?
Where is asp.net view state stored?