I’m using Visual Studio 2010 ASP.NET with C# on the back framework 4
It comes with user register/login/logout mechanism.
on load of the default.aspx page I would like to redirect the users: user1 and user2 to default2.aspx and the rest of the users to default3.asp
I would not like to use cookies, but using a session is acceptable.
something like:
if (username == "user1" || username == "user2")
{
Response.Redirect("defualt2.aspx");
}
else
{
Response.Redirect("default3.aspx");
}
However you might want to use Server.Transfer instead of Response.Redirect, if you don’t want the address to change in the address bar.