Click here to Skip to main content
15,905,144 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir in my project several pages are there which throws exception and some pages after session expires throws the error and they are simply visible on the screen so my wish is that i do not want to see the exception or error or connection failure message instead of them i want to redirect to login page when these things are happed through "WEB.CONFIG" file only.i have written in the global asax code and i have written under the webconfig file that "CUSTOM ERRON MODE="ON" DEFAULT REDIRECT="LOGIN PAGE" ,IT WORKS FINE BUT FIRST IT SHOWING THE EXCEPTION ERROR THEN IT REDIRECTS TO LOGIN PAGE SO GIVE ME SOLUTION
Posted
Comments
Ankur\m/ 9-Nov-10 7:56am    
Do not add another post for the same question. Select 'Improve Question' below the question to edit/update any information. Delete this question and update the previous one here: http://www.codeproject.com/Questions/126008/web-config-file-asp-net.aspx

1 solution

Hi there,

Don't worry regarding the error. The error that is currently showing in the development environment, once you deploy it in a server, will not show anymore.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900