T
Tom
Hi,
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:
I want to redirect page to be the same index.aspx which
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
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:
Code:
case LOGIN_SUCCESS:
Session["UserName"] = UserName;
Session["Role"] = Role;
Response.Redirect("loginsuccess.ascx",true);
break;
I want to redirect page to be the same index.aspx which
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