How to change default values of autogenerated client id ? In my code values are coming like ctrl_10 and want it to come as ctrl_100
How to change default values of autogenerated client id ?
Collapse
X
-
Tags: None
-
Hi ,
I have to run code developed on some other machine , on my machine .
However due to different client ID values on different machines , i always face the issueComment
-
Oh wait a sec.
Do you realize that ASP.NET web controls have a ClientID Property?
This means that you can access the client id of the control from your VB.NET or C# code.
You can then use that to pass the client ids of the HTML controls into JavaScript methods...or you can use Response.Write( myControl.Clien tID) to directly insert the client id into the JavaScript.
Check out this article on How to use JavaScript in ASP.NET for a quick overview of what I'm talking about :)
-FrinnyComment
Comment