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?



Asp.net - How to find last error which occurred?..

Answer / 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

More ASP.NET Interview Questions

Explain how can you debug your .net application?

0 Answers  


What is the name of the base class that all web forms will be inherited?

7 Answers  


What are Session states available and its Uses?

0 Answers   CTS, iLogic,


What is the difference between executescalar and executenonquery?

0 Answers  


Difference between Array and ArrayList? How Array is benifitful than ArrayList?

3 Answers   Tech Mahindra,


What permissions do asp.net applications posses by default?

0 Answers  


How can we identify that the Page is Post Back?

0 Answers  


What is JIT and how is works ?

1 Answers   Patni,


please give a brief knowledge about these events ? page_render() page_prerender() page_unload page_loadcomplete page_preinit

1 Answers   Netsweeper,


What are the three parts of an http response?

0 Answers  


What is cas?

0 Answers  


Explain Features in ASP.NET

0 Answers   Microsoft,


Categories