Hi Sezhman:
Inside of the code behind file for global.asax you'll find an
Application_Error method. From here you can examine run time
exceptions in the application with Server.GetLastError. HttpExceptions
will have a GetHttpCode method, and sometimes you need to look at the
InnerException property of the exeception to find the HttpException.
You can also use web.config to redirect to a custom error page.
See
http://msdn.microsoft.com/library/de...sp08232001.asp
for more info.
HTH,
--
Scott
http://www.OdeToCode.com
On Tue, 6 Jul 2004 20:46:01 -0700, "Sezhman"
<Se*****@discussions.microsoft.com> wrote:
Hi,
I developed an ASP.NET application. I am testing my application with all possibility of data. How to handle HTTP errors (Codes) in ASP.NET.
Regards,
Sezhman