Answer: We have a
Server static method called GetLastError() through which we can find the Last error which gets occur.
For Example:-
Exception last_err = Server.GetLastError();
if (last_err != null)
Response.Write(last_err.Message);
Asked In: Many Interviews |
Alert Moderator