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 |
relacement of websevices in .net 3.0?
What is a page life cycle? What are the events in a page life cycle?
What is a form tag?
What is virtual directory in asp.net?
In asp.net 3.5 we can go one page to onther page without using statemanagment concept?
How does ASP.NET framework maps client side events to Server side events.?
What are the asp.net security controls?
About Usage of server variables ?
What is HTTPModule and HTTPcontext? What is the use of each?
Can you explain architecture of your project ?
How to store checkbox value in database in asp.net mvc? : Asp.Net MVC
What is ipostback?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)