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

How should I destroy my objects in asp.net?

0 Answers  


What are the different Key TreeView Properties in Asp.net 2.0?

1 Answers   TCS,


what is Impersonation

3 Answers   Alliance One, Task Informatics,


What is machine.config and web.config ?

5 Answers   Digital GlobalSoft,


What is a windows service?

0 Answers  


WHAT IS THE SEQUENCE IN WHICH ASP.NET EVENTS IS PROCEED?

4 Answers  


Explain the difference between debug.write and trace.write? When should each be used?

0 Answers  


how to pass session value one url to another url.my code if session("user")="abc" then response.redirect("www.abc.com\client\home.aspx") end if. so how to pass value of session in browser url

1 Answers  


What is the difference between page.registerclientscriptblock and page.registerstartupscript?

0 Answers  


What is FullTrust? Do GACed assemblies have FullTrust?

2 Answers  


What is query string with example?

0 Answers  


Define xmlreader class.

0 Answers  


Categories