Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to pass text into a textbox of another Page?

How to pass text into a textbox of another Page?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorialquestion
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KaKa
    wrote on last edited by
    #1

    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

    S V R U 4 Replies Last reply
    0
    • K KaKa

      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

      S Offline
      S Offline
      sathish s
      wrote on last edited by
      #2

      Use Session variables or Query String

      1 Reply Last reply
      0
      • K KaKa

        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

        V Offline
        V Offline
        vipinpaliwal1980
        wrote on last edited by
        #3

        om button click event response.redirect("frame.aspx?x="+textbox1.text) on frame.aspx page_load textbox1.text=request.querystring("x") vipin paliwal

        1 Reply Last reply
        0
        • K KaKa

          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

          R Offline
          R Offline
          Ritesh1234
          wrote on last edited by
          #4

          Hi, on Default.aspx page write this (lets' assume name of text box in tbDefault) server.transfer("Frame.aspx") and in page load of Frame.aspx page textboxFocus.text = request.form.item("tbDefault") Or u can try this on Default.aspx page write this (lets' assume name of text box in tbDefault) context.Items.Add("tbDefault", tbDefault.Text) server.transfer("Frame.aspx") and in page load of Frame.aspx page textboxFocus.text = context.items("tbDefault") I hope this will help u.... Regards, Ritesh

          1 Reply Last reply
          0
          • K KaKa

            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

            U Offline
            U Offline
            Uma Kameswari
            wrote on last edited by
            #5

            use Sessions to pass values between the pages. In Default.aspx In the Button_Click event write the following Session["value"]=TextBox1.Text; In the Frame.aspx In the Page_Load event write the following TextBox1.Text=Session["value"].ToString((); Try this.Hope this will help you.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups