ANS :
Yes, we can do this, but for that we must know the error codes; only then we can take the user to a proper error message page.
CustomErrors Configuration section in web.config file:
The default configuration is:
< mode="RemoteOnly" defaultredirect="Default.aspx">
< statuscode="404" redirect="Notfound.aspx">
< /customErrors >
Add an <> tag for each error you want to handle.
The error tag will redirect the user to the Notfound.aspx page when the site returns the 404 (Page not found) error.

0 Comments:

Post a Comment




 

| Modified by Kiran Patel |