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. Taking dynamically created Text box id from client Side

Taking dynamically created Text box id from client Side

Scheduled Pinned Locked Moved ASP.NET
question
4 Posts 3 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
    sekannak
    wrote on last edited by
    #1

    Hi All, How can i take the dynamically created control id from client side?? Note: dim txt as new textbox dim plcholder as new placeholder plcholder.control.add(txt) now i can create dynamically text box sucessfully, But i want to take this id from Client side like as below var txtid = document.getelementID("<%=txt.ClientID >") is it possible? or else any other way to take this id?? if anyone knows plz answer me........

    kannak

    D 1 Reply Last reply
    0
    • S sekannak

      Hi All, How can i take the dynamically created control id from client side?? Note: dim txt as new textbox dim plcholder as new placeholder plcholder.control.add(txt) now i can create dynamically text box sucessfully, But i want to take this id from Client side like as below var txtid = document.getelementID("<%=txt.ClientID >") is it possible? or else any other way to take this id?? if anyone knows plz answer me........

      kannak

      D Offline
      D Offline
      Deepak the Cool
      wrote on last edited by
      #2

      Request.Form["ctl00$plcholder$txt"]

      Deepak :) Smile a Lots,Its Costs Nothing

      M S 2 Replies Last reply
      0
      • D Deepak the Cool

        Request.Form["ctl00$plcholder$txt"]

        Deepak :) Smile a Lots,Its Costs Nothing

        M Offline
        M Offline
        mr_muskurahat
        wrote on last edited by
        #3

        or you can also use <%= textboxid.ClientID %>

        Government Dyal Singh College Lahore.

        1 Reply Last reply
        0
        • D Deepak the Cool

          Request.Form["ctl00$plcholder$txt"]

          Deepak :) Smile a Lots,Its Costs Nothing

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

          Hi, Its working fine,, Thanks you... but i used to take textbox id like document.getelementID(ctl00$plcholder$txt) working packka....

          kannak

          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