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 access TextBox value of the Parent Page from the child page in server side

How to access TextBox value of the Parent Page from the child page in server side

Scheduled Pinned Locked Moved ASP.NET
helpsysadmintutorial
7 Posts 4 Posters 1 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.
  • D Offline
    D Offline
    Dhanasekaran_SRA
    wrote on last edited by
    #1

    I having a Parent page with TextBox control. I need to access this TextBox control's value from Child page. I didn't know how to access in the server side from Child Page. can anyone help me on above problem. - dhans

    V A T 3 Replies Last reply
    0
    • D Dhanasekaran_SRA

      I having a Parent page with TextBox control. I need to access this TextBox control's value from Child page. I didn't know how to access in the server side from Child Page. can anyone help me on above problem. - dhans

      V Offline
      V Offline
      varshavmane
      wrote on last edited by
      #2

      Hi, U can pass any number of values from parent form to child form by QueryString. Thanks and Regards.

      D 1 Reply Last reply
      0
      • V varshavmane

        Hi, U can pass any number of values from parent form to child form by QueryString. Thanks and Regards.

        D Offline
        D Offline
        Dhanasekaran_SRA
        wrote on last edited by
        #3

        Hi, I have to deal with large amount of data, so i cannot use Querystring or session. Is there any other solution? thanks for quick reply - dhans:laugh:

        V 1 Reply Last reply
        0
        • D Dhanasekaran_SRA

          Hi, I have to deal with large amount of data, so i cannot use Querystring or session. Is there any other solution? thanks for quick reply - dhans:laugh:

          V Offline
          V Offline
          varshavmane
          wrote on last edited by
          #4

          Sorry to say but I dont know any other option for this..... :(

          1 Reply Last reply
          0
          • D Dhanasekaran_SRA

            I having a Parent page with TextBox control. I need to access this TextBox control's value from Child page. I didn't know how to access in the server side from Child Page. can anyone help me on above problem. - dhans

            A Offline
            A Offline
            absprogrammer
            wrote on last edited by
            #5

            you can use global veriable in global.asax i think this will help u

            1 Reply Last reply
            0
            • D Dhanasekaran_SRA

              I having a Parent page with TextBox control. I need to access this TextBox control's value from Child page. I didn't know how to access in the server side from Child Page. can anyone help me on above problem. - dhans

              T Offline
              T Offline
              Talal Sultan
              wrote on last edited by
              #6

              What do you mean by child page? is that a class derived from the original page? If you're talking about 2 different ASPX pages, I think there is no way to retrieve values of a page from another page. I believe that as soon as you switch from one page to another, the previous page is discarded with everything in it, so I suppose there is no way to get back values from controls in it. You might be able to do so however if you're running a web user control and you want to retrieve the values of the parent page (containing the control). One thing for sure is that you can access programmatically any user control from the parent page and change the values of the controls in it, now whether you can go the other way around is something worth investigating. Sorry, some theories, no solutions :) Talal "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

              A 1 Reply Last reply
              0
              • T Talal Sultan

                What do you mean by child page? is that a class derived from the original page? If you're talking about 2 different ASPX pages, I think there is no way to retrieve values of a page from another page. I believe that as soon as you switch from one page to another, the previous page is discarded with everything in it, so I suppose there is no way to get back values from controls in it. You might be able to do so however if you're running a web user control and you want to retrieve the values of the parent page (containing the control). One thing for sure is that you can access programmatically any user control from the parent page and change the values of the controls in it, now whether you can go the other way around is something worth investigating. Sorry, some theories, no solutions :) Talal "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook

                A Offline
                A Offline
                absprogrammer
                wrote on last edited by
                #7

                whatever u told is ok. but it is possible by storing textbox's value in session or using 'shared veriable' in Global.asax What do u think?

                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