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. URGENT! - Passing value from one page to another?

URGENT! - Passing value from one page to another?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
9 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.
  • J Offline
    J Offline
    John Sundar
    wrote on last edited by
    #1

    i need to send the textbox value from the "second" page to "first" page..... (i.e, TEXTBOX1 of "first" page is to be get filled by TEXTBOX2 of "second" page values, while user click a button in "second" page) I am using ASP.NET with C# (.net 2003, 1.1 framework) Thanks in advance - john

    A N C 3 Replies Last reply
    0
    • J John Sundar

      i need to send the textbox value from the "second" page to "first" page..... (i.e, TEXTBOX1 of "first" page is to be get filled by TEXTBOX2 of "second" page values, while user click a button in "second" page) I am using ASP.NET with C# (.net 2003, 1.1 framework) Thanks in advance - john

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      use Session Variable or QueryString

      Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"

      J 1 Reply Last reply
      0
      • A Abhijit Jana

        use Session Variable or QueryString

        Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"

        J Offline
        J Offline
        John Sundar
        wrote on last edited by
        #3

        Yes my friend. Using querystring or session we can do it. but what the thing is, when i click the button in "second" page, at once the textbox2 value from "second" page is to get SET to the textbox1 of "first" page. does we can achieve it by using query string or session.? if so, HOW?

        A 1 Reply Last reply
        0
        • J John Sundar

          i need to send the textbox value from the "second" page to "first" page..... (i.e, TEXTBOX1 of "first" page is to be get filled by TEXTBOX2 of "second" page values, while user click a button in "second" page) I am using ASP.NET with C# (.net 2003, 1.1 framework) Thanks in advance - john

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          John Sundar wrote:

          URGENT! - Passing value from one page to another?

          Mmmm.. Read this[^]. You will get the solutions. Also buy some books to learn how ASP.NET works

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

          1 Reply Last reply
          0
          • J John Sundar

            Yes my friend. Using querystring or session we can do it. but what the thing is, when i click the button in "second" page, at once the textbox2 value from "second" page is to get SET to the textbox1 of "first" page. does we can achieve it by using query string or session.? if so, HOW?

            A Offline
            A Offline
            Abhijit Jana
            wrote on last edited by
            #5

            John Sundar wrote:

            but what the thing is, when i click the button in "second" page, at once the textbox2 value from "second" page is to get SET to the textbox1 of "first" page.

            What does it mean ? :confused: when click on button on second page you want to back on first page ??? or both page will open ????

            Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"

            J 2 Replies Last reply
            0
            • A Abhijit Jana

              John Sundar wrote:

              but what the thing is, when i click the button in "second" page, at once the textbox2 value from "second" page is to get SET to the textbox1 of "first" page.

              What does it mean ? :confused: when click on button on second page you want to back on first page ??? or both page will open ????

              Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"

              J Offline
              J Offline
              John Sundar
              wrote on last edited by
              #6

              thanks for your reply Abhijit Jana. i have two webform "parent" and "child". in "parent" webform : one textbox(parent_textbox) and one button(parent_button). in "child" webform : there are one textbox(child_textbox) and one button(child button). Process flow: when user click the "parent_button", the "child" webform should open. Then user will input some text in "child_textbox" and when user press "child_button", the "child" webform should close and the "child_textbox" value should set to the "parent_textbox". How can i achieve it? EXAMPLE : in GMAIL, to attach a file, when user clicks the attach button, it open the browse window. when user select the file, the browse window will close and the corresponding path will set to the textbox. -JOHN

              1 Reply Last reply
              0
              • J John Sundar

                i need to send the textbox value from the "second" page to "first" page..... (i.e, TEXTBOX1 of "first" page is to be get filled by TEXTBOX2 of "second" page values, while user click a button in "second" page) I am using ASP.NET with C# (.net 2003, 1.1 framework) Thanks in advance - john

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                Please don't ask the same question day after day. If you don't understand the answers you got, ask again ( that is, ask the person who answered you, on the same thread, not a new one ). If you still can't work it out, then realise that the problem is with you - buy a book, do a course, bring yourself to a level of being able to understand the answers. Like I said the other day, the easiest way is to make both pages controls on the one page, and let viewstate store the values and your main page pass them between the controls as they are shown and hidden.

                Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                J 1 Reply Last reply
                0
                • A Abhijit Jana

                  John Sundar wrote:

                  but what the thing is, when i click the button in "second" page, at once the textbox2 value from "second" page is to get SET to the textbox1 of "first" page.

                  What does it mean ? :confused: when click on button on second page you want to back on first page ??? or both page will open ????

                  Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"

                  J Offline
                  J Offline
                  John Sundar
                  wrote on last edited by
                  #8

                  thanks for your reply Abhijit Jana. i have two webform "parent" and "child". in "parent" webform : one textbox(parent_textbox) and one button(parent_button). in "child" webform : there are one textbox(child_textbox) and one button(child button). Process flow: when user click the "parent_button", the "child" webform should open. Then user will input some text in "child_textbox" and when user press "child_button", the "child" webform should close and the "child_textbox" value should set to the "parent_textbox". How can i achieve it? EXAMPLE : in GMAIL, to attach a file, when user clicks the attach button, it open the browse window. when user select the file, the browse window will close and the corresponding path will set to the textbox. -JOHN.....

                  1 Reply Last reply
                  0
                  • C Christian Graus

                    Please don't ask the same question day after day. If you don't understand the answers you got, ask again ( that is, ask the person who answered you, on the same thread, not a new one ). If you still can't work it out, then realise that the problem is with you - buy a book, do a course, bring yourself to a level of being able to understand the answers. Like I said the other day, the easiest way is to make both pages controls on the one page, and let viewstate store the values and your main page pass them between the controls as they are shown and hidden.

                    Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

                    J Offline
                    J Offline
                    J4amieC
                    wrote on last edited by
                    #9

                    I know you don't care about the 1 voters, but I hate seeing a decent response in grey.. voted 5 to even the score!

                    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