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.
How to transfer values of one page to another page.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jaish MathewsRank #225 · 11K reputationPosted Apr 13, 2010, 10:13 PM EDT
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.
shyamala37 reputationPosted Apr 13, 2010, 10:39 PM EDT
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");