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. Access the textbox control in Different Page

Access the textbox control in Different Page

Scheduled Pinned Locked Moved ASP.NET
6 Posts 4 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.
  • S Offline
    S Offline
    slSoftware
    wrote on last edited by
    #1

    hi all i want access the textbox control in different usercontrol using javascript,im using TabContainer for access the pages. Thanks

    D E 2 Replies Last reply
    0
    • S slSoftware

      hi all i want access the textbox control in different usercontrol using javascript,im using TabContainer for access the pages. Thanks

      D Offline
      D Offline
      Dev S
      wrote on last edited by
      #2

      can u specify ur problem in detail.

      S 1 Reply Last reply
      0
      • S slSoftware

        hi all i want access the textbox control in different usercontrol using javascript,im using TabContainer for access the pages. Thanks

        E Offline
        E Offline
        Eniran
        wrote on last edited by
        #3

        Hi If you are using both the usercontrols in single page means, you can call var doc=document.GetElementById("<%=txtbxName%>"); (Or) doc=document.GetElementById("UserControlName_txtbxName"); if you are using different page, then you can create an object and then call. (Or) you can create class object and then assign the Textbox value to that object and access anywhere in your application

        Ranjith

        1 Reply Last reply
        0
        • D Dev S

          can u specify ur problem in detail.

          S Offline
          S Offline
          slSoftware
          wrote on last edited by
          #4

          i have masterpage there i have a ajax TabContainer inside that i have 3 TabPanel, one of that have i call the aspx file and that particular aspx file calling a another usercontrol.so all the textbox controls inside that usercontrol, i want access that textbox id from master page.when i see that client id it shown as follows ctl00_ContentPlaceHolder1_testusercontrol_txtName but javascript gives error not define. i want access that textbox value, how to do that

          D 1 Reply Last reply
          0
          • S slSoftware

            i have masterpage there i have a ajax TabContainer inside that i have 3 TabPanel, one of that have i call the aspx file and that particular aspx file calling a another usercontrol.so all the textbox controls inside that usercontrol, i want access that textbox id from master page.when i see that client id it shown as follows ctl00_ContentPlaceHolder1_testusercontrol_txtName but javascript gives error not define. i want access that textbox value, how to do that

            D Offline
            D Offline
            Dev S
            wrote on last edited by
            #5

            the easiest way is to use session variable for ur purpose.

            Y 1 Reply Last reply
            0
            • D Dev S

              the easiest way is to use session variable for ur purpose.

              Y Offline
              Y Offline
              Yusuf
              wrote on last edited by
              #6

              how is session variable going to help him with JavaScript in the client side?

              Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

              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