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

Where you store Connection string in "Web.Config" file in ASP.NET?

1045


How do you secure your connection string information?

972


How would you turn off cookies on a page of a website?

915


How do u declare static variable and how it is declared and what is its lifetime?

1020


Explain difference between dataset and recordset?

1032


Why is string called immutable data type?

1022


How will create assesblies at run time?

972


What is mvc in asp.net tutorial? : Asp.Net MVC

1174


How you can access the values from the Repeater control in ASP.NET?

1056


Where sessions are stored in asp.net?

989


What is the mvc model?

997


Is razor a programming language?

978


Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc

1090


What are the different types of events are occured when a client requests an ASP.NET page from IIS server?

1103


What is a 1x1 pixel?

931