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 |
Difference between Response.Expires and Expires.Absolute ?
1 Answers Accenture, BirlaSoft,
What kind of programming language is ASP.NET?
What are the namespaces used in asp.net mvc? : asp.net mvc
What method must be overridden in a custom control? a) The Paint() method b) The Control_Build() method c) The Render() method d) The default constructor
1 Answers Icertis, Microsoft, Syntax Softtech,
What are the namespace classes used in asp.net mvc? : asp.net mvc
Does web services support data reader like pom project?
What is custom tag in web.config ?
2 Answers Accenture, BirlaSoft,
What is a postback in asp net?
Can we throw exception from catch Block?
4. How do you plan to achieve these goals?
7 Answers Burger King, Latest, Swatz Oils,
What is cross page posting in asp net?
What is the difference between <%#%> and <%=%>?
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)