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

How does asp.net work?

997


What is strong-typing versus weak-typing?

1173


How will create assesblies at run time?

1037


Explain the asp.net mvc folder conventions? : asp.net mvc

1039


What are standard controls?

1012


What are the different ways you would consider sending data across pages in ASP (i.e between asp to asp)?

1037


What is the use of the tag in the web.config file?

1020


What is .net framework and what are the main components of it?

882


What kind of data we can store in viewstate?

1095


Where do the cookie state and session state information be stored?

976


Why do we use asp.net?

1084


What are web server controls in asp.net?

1166


What is connection pooling and how to enable and disable connection pooling?

1068


How asp.net mvc differs from asp.net web forms? : asp.net mvc

1162


What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?

1068