I have an index.aspx page which includes top.aspx,
left.aspx, main.aspx and bottom.aspx.
In the left.aspx, there is a login web control -
login.ascx. It keeps session of username and role after
successful login and shows welcome user message and his
shopping cart link.
The page which shows welcome user message and his shopping
cart link called loginsuccess.ascx. Now, I am not sure how
to deal with the redirect page.
Here is the session code in login.ascx:
Expand|Select|Wrap|Line Numbers
- case LOGIN_SUCCESS:
- Session["UserName"] = UserName;
- Session["Role"] = Role;
- Response.Redirect("loginsuccess.ascx",true);
- break;
has the same top.aspx, left.aspx, role.aspx and
bottom.aspx. In the left.aspx and main.aspx pages, I want
login.ascx turns to loginsuccess.ascx and main.aspx to
role.aspx according to the username and role.
How can I do it?
Thanks