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
Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?
What is postback pixel?
How can we Validate a Controls in ASP.NET page using JavaScript?
What are server side controls?
Is asp.net a programming language or framework?
What is asp.net mvc5? : Asp.Net MVC
Why web api is better than wcf?
Which property is used to identify the Page is Post Back in ASP.NET?
What is master page in dtp?
What is difference between datalist and gridview?
What are the advantages and disadvantages of session?
What is special types forms
How can we prepairing Interview
if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.
Explain the role of global.asax?