hi,
i design a User login page. user Enter Correct username and Password Then go to second page. in second page i take one label, in that label it display first page username textbox Value. how to write code to do this.
Thanks.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
shyamalaPosted Apr 14, 2010, 2:39 AM
using session means
---------------------------
first page
------------
session['user']=username.Text;
second page
----------------
Label1.Text = Session["user"].ToString
another way
----------------
first page
-------------
Response.Redirect("nextpage.aspx?uname=' " username.Text" ' ");
next page
-------------
label1.Text=Request.QueryString("uname");
Jaish MathewsPosted Apr 14, 2010, 2:13 AM
UserName should be available through our session. So once validated successfully, store it in session like Session["UserID"].\But if you are using Authentication/Authorization services, I am preferring to use Login control collections as part of VS tool box.