i would like to redirect to customer.aspx from login aspx.
the code is
response.redirect(customer.aspx)
at the same time, i would like to pass the Login ID to customer.aspx. what code should i use for the customer.aspx as well as login.aspx in order to perform such function?
thanks
christeneThere are several options, of which just a few are:
1. Pass it in the URL
2. Store it in a session variable
3. Send it to the user's machine in a cookie.
Hope this helps,
Russ
well.........
my login is a button.
how i implement URL elements in a button control?
how do we use session variable?..i am not sure abt this....
hope u can explain futher...thanks a lot...
christene
What do you mean "My login is a button"? Can you tell me exactly what you have going on?
haha.....it means....
after the user type in the user name n password...they will click on a LOGIN BUTTON in order to log in....
well,i have done some testing using URL and it works...
response.redirect(customer.aspx?cusName = "& CustomerName &"")
on the customer.aspx,
Request.params("cusName")
right?
however, can u pls explain what is session variable?...i have heard about this but not sure what it is and how it works.....can u?
thanks...
christene
There is a good article on MSDN should you passing server control values between pages at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconpassingservercontrolvaluesbetweenpages.asp
0 comments:
Post a Comment