How to pass text to a textbox of another Page?
Hi, :afrog:
How do we pass values from one asp.net webpage to a textbox of another asp.net webpage?
There are 2 asp.net webpages. Default.aspx and Frame.aspx.
When I click on a button on Default.aspx, some text has to appear on the textbox of Frame.aspx
Re: How to pass text to a textbox of another Page?
some ways
1 you can by querystring
response.redirect("page2.aspx?Uid=" + textbox1.text);
2. if is FW2 you can by PostBackUrl
<asp:Button ID="Button2" runat="server" PostBackUrl="~/searchForum/searchResult.aspx"
Text="search" />
and to get the value from the other page:
Response.Write(Page.PreviousPage.FindControl("titleBody").ToString());
3. by session.