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. Master Page Problem

Master Page Problem

Scheduled Pinned Locked Moved ASP.NET
csharpjavascriptsysadminhelpquestion
2 Posts 2 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.
  • M Offline
    M Offline
    Mahesh J
    wrote on last edited by
    #1

    Hi.. Hi, I am trying to use couple of server controls in my master page and I need to identify the same at the client side(javascript). But in ASP .NET2.0 the server controls are appended with "ctl00_ctl00_" to the control id. How can I solve this problem. Thanks Mahesh.J

    W 1 Reply Last reply
    0
    • M Mahesh J

      Hi.. Hi, I am trying to use couple of server controls in my master page and I need to identify the same at the client side(javascript). But in ASP .NET2.0 the server controls are appended with "ctl00_ctl00_" to the control id. How can I solve this problem. Thanks Mahesh.J

      W Offline
      W Offline
      wk633
      wrote on last edited by
      #2

      You want the .ClientID So on the server side you have code to set a client side variable = myControl.ClientID something like: Dim JSString As String = "var myControlID = " & myControl.ClientID & ";" and on the client side you can refer to myControlID. -- modified at 12:35 Saturday 28th July, 2007 (and obiously you have to Register that JSString so it shows up on the client side)

      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