Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?

997


What is postback pixel?

991


How can we Validate a Controls in ASP.NET page using JavaScript?

1177


What are server side controls?

985


Is asp.net a programming language or framework?

996


What is asp.net mvc5? : Asp.Net MVC

1020


Why web api is better than wcf?

1093


Which property is used to identify the Page is Post Back in ASP.NET?

1014


What is master page in dtp?

983


What is difference between datalist and gridview?

1076


What are the advantages and disadvantages of session?

1116


What is special types forms

1015


How can we prepairing Interview

2328


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.

2226


Explain the role of global.asax?

982