Hi Can anybody tell me how to use session ? I have a products page and i only want the logged users to see that page. I have table where i have stored the user_name and password ..
can anyone help by sending the code ?
For Answers, see/post comments
Session c#
Subscribe to:
Post Comments (Atom)
4 comments:
session["name"]=textbox1.text;
this you can get from another page also
hi,
Session is a server variable and that's lifespan is throughout the program and we can view it's value in all pages
u can use a session variable as
Session["UserName"] =txt_UserName.Text;
hi
session["uname"]=txtname.text
in the next page
call like this
string a = session["uname"].ToString()
Session["USERNAME"]=txtUName.text;
String GetUserName=Session["USERNAME"].TOString();
Post a Comment