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 |
How to store checkbox value in database in asp.net mvc? : Asp.Net MVC
What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?
What is the need of client side and server side validation ?
What is a viewbag?
What is the function of new view engine in asp.net? : asp.net mvc
Is it possible to use two versions of assembly at the same time?If possible explain with code?
What?s a bubbled event?
What is WebService ?
8 Answers Tanla Solutions, Yahoo,
What are the benefits of Razor View?
Exception handling
What is the use of HttpHandlers? When to use this?
What is redirecting behavior?
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)