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. Client ID

Client ID

Scheduled Pinned Locked Moved ASP.NET
javatoolshelpquestion
3 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
    sajjy
    wrote on last edited by
    #1

    hi guys i have a problem using java script in one of my pages i have a text box in a page , and i wana write some scripts for that , but i can`t get the ID ! :) How i can get the ID on client computer ? tnx :cool:

    J A 2 Replies Last reply
    0
    • S sajjy

      hi guys i have a problem using java script in one of my pages i have a text box in a page , and i wana write some scripts for that , but i can`t get the ID ! :) How i can get the ID on client computer ? tnx :cool:

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

      myTextBox.ClientID surprise, surprise.

      1 Reply Last reply
      0
      • S sajjy

        hi guys i have a problem using java script in one of my pages i have a text box in a page , and i wana write some scripts for that , but i can`t get the ID ! :) How i can get the ID on client computer ? tnx :cool:

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        If it is a server side textbox get

        var x = document.getElementById('<%= this.mytextbox.ClientId %>');

        :cool: If it is not, then call directly with its id. The id of client side only controls will remain same.

        Abhishek Sur My Latest Articles Working with Excel using MDAC
        Basics on LINQ and Lambda Expressions
        Create .NET Templates

        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