Click here to Skip to main content
15,902,276 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can I change show of the first page , I want to another page to show first dynamically when the user want
Posted

You really haven't given much detail to go on but try something like this.

C#
protected void PageLoad()
{
    if(Session["first"])
       Session.Transfer("...");
}
 
Share this answer
 
 
Share this answer
 
If all you mean is to allow your users to decide what page they see when they login, you can store their preference in a database, and when they login, read it back and redirect them to their preferred page from the login page or the default home page like this:
C#
string landingPage = Session["LandingPage"].ToString();
Response.Redirect(landingPage);
 
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