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

Explain about solution explorer window?

991


Explain what is postback in asp. Net?

1018


What is http protocol and how it works?

968


What do you mean by marshalbyref?

1036


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?

959


What is asp.net master page?

932


Differences between “dataset” and “datareader”.

985


What is the difference between “Web.config” and “Machine.Config”?

1085


What is considered a service provider?

899


What are html helpers in asp.net?

1015


How u refer webservices?

1895


Define xmlvalidatingreader class.

1038


How can we create custom controls in asp net?

975


What is paging in context of Memory?

1063


Where is asp.net view state stored?

953