Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
from the web .config file i want to redirect to a login page when will exception or session expaires occurs so how to do that one?
Posted

1 solution

Use the customErrors section in web.config file.

Look at these.

Global Error Handling in ASP.NET[^]

Web Application Error Handling in ASP.NET[^]
 
Share this answer
 
v2

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