Wednesday, July 21, 2010

Get the id/name of the ASP.NET server control as rendered on the browser in JQUERY/Javascript

var id = '<%=controlId.ClientID %>' is used to retrieve the id of the ASP.NET control with id=controlId as rendered on the browser.
Var name = '<%=controlId.UniqueID %>' is used to retrieve the name of the ASP.NET control with id=controlId as rendered on the browser.


where controlId is the id of the asp.net web server control.

No comments:

Post a Comment