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 |
Explain how can you debug your .net application?
What is the name of the base class that all web forms will be inherited?
What are Session states available and its Uses?
What is the difference between executescalar and executenonquery?
Difference between Array and ArrayList? How Array is benifitful than ArrayList?
What permissions do asp.net applications posses by default?
How can we identify that the Page is Post Back?
What is JIT and how is works ?
please give a brief knowledge about these events ? page_render() page_prerender() page_unload page_loadcomplete page_preinit
What are the three parts of an http response?
What is cas?
Explain Features in ASP.NET
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)