Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear sir,

How to define Default URL in Web.Config file in asp.net project.

My Login URL is inside Project1 folder as login.aspx and
My Default URL is Inside Project2 Folder as home.aspx,

Based on this file how to define Correct path login url and default url

One of the page URL copying and
when I use different browser,
automatically goes to Home.aspx page

reply me Correct path

By mohan
Posted
Updated 10-Jan-12 20:21pm
v3

1 solution

u can check user in Home.aspx if the user is not logged in so redirect it to login.aspx
C#
Response.Redirect("~/project2 or whatever/login.aspx", true);
 
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