Set ClientID in asp.net

前端 未结 7 1634
情话喂你
情话喂你 2020-12-19 03:28

Is it possible to set the ClientID of any asp.net server control? How can I do this?

7条回答
  •  情深已故
    2020-12-19 03:58

    The good news is that in VS 2010 .Net 4, you'll have complete control over Client IDs!

    Still for the current versions of .Net, you can make due. I assume you need the ID for JavaScript. If so, just get the ID like so:

    
    

提交回复
热议问题