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