Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have one textbox in form1 and another in form2 textbox both are use for EmployeeID. When i enter value in textbox of form1 then click button one then it display form2 textbox. How i do this. Its Urgent. Thanks
Posted

First of all your requirement is not clear. If you are looking for some search functionality you can use Query String to pass the value to the second page.
 
Share this answer
 
Hi,

you can post the value of EmployeeID from form1 to form2 and then set it on form2.
 
Share this answer
 
hi vikrant,

Try this,

In my case I use a TextBox(TextBox1) and a Button(Button1) in the First Page(Page1.aspx) and a TextBox(TextBox2) in an another page(Page2.aspx)

Page1.aspx:->

<pre lang="cs">protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect(&quot;Page2.aspx?nm=&quot; + TextBox1.Text);
}</pre>


Page2.aspx:->

<pre lang="cs">protected void Page_Load(object sender, EventArgs e)
{
string name = Request.QueryString[&quot;nm&quot;].ToString();
TextBox2.Text = name.ToString();

}</pre>
 
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