|
-
Apr 12th, 2006, 03:03 AM
#1
Thread Starter
Lively Member
How to pass text to a textbox of another Page?
Hi,
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
-
Apr 12th, 2006, 03:50 AM
#2
Addicted Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|