Click here to Skip to main content
15,902,939 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Dear All,

i have two webpages in my application.

page1 userID = "txtUserID"

page2 Emp id = txtEmpid

here userid = empid

how to call page1 TEXTBOX (userid) value to page2 TEXTBOX (txtEmpid)
Posted
Updated 5-Mar-12 19:24pm
v2

Pass it as a query string when you are calling your second page. Or you may store it in a session. But i feel you need value only till your second page. So it's better pass it as a query string and fetch it on second page page load event.

Edit
Refer this link
Passing variables between pages using QueryString[^]
 
Share this answer
 
v2
You can use Session,Cookie or quer string take a look of
Session Management in ASP.NET[^]
Passing variables between pages using QueryString[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900