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 should I destroy my objects in asp.net?
What are the different Key TreeView Properties in Asp.net 2.0?
what is Impersonation
3 Answers Alliance One, Task Informatics,
What is machine.config and web.config ?
What is a windows service?
WHAT IS THE SEQUENCE IN WHICH ASP.NET EVENTS IS PROCEED?
Explain the difference between debug.write and trace.write? When should each be used?
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
What is the difference between page.registerclientscriptblock and page.registerstartupscript?
What is FullTrust? Do GACed assemblies have FullTrust?
What is query string with example?
Define xmlreader class.
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)