Results 1 to 2 of 2

Thread: How to pass text to a textbox of another Page?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    108

    Smile 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

  2. #2
    Addicted Member
    Join Date
    Jul 2005
    Posts
    194

    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
  •  



Click Here to Expand Forum to Full Width