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

relacement of websevices in .net 3.0?

1 Answers   Mind Tree,


What is a page life cycle? What are the events in a page life cycle?

0 Answers  


What is a form tag?

0 Answers  


What is virtual directory in asp.net?

0 Answers  


In asp.net 3.5 we can go one page to onther page without using statemanagment concept?

1 Answers   ANR, Google, TCS,


How does ASP.NET framework maps client side events to Server side events.?

0 Answers  


What are the asp.net security controls?

0 Answers  


About Usage of server variables ?

2 Answers   Cognizant, CTS,


What is HTTPModule and HTTPcontext? What is the use of each?

0 Answers   Accenture,


Can you explain architecture of your project ?

0 Answers  


How to store checkbox value in database in asp.net mvc? : Asp.Net MVC

0 Answers  


What is ipostback?

0 Answers  


Categories