How can I find a panel defined in usercontrol from its parent page using jquery?
like the equivalent of document.getElementById('<%= UserControl.FindControl("pnlInputs").ClientID %>') in jquery
How can I find a panel defined in usercontrol from its parent page using jquery?
like the equivalent of document.getElementById('<%= UserControl.FindControl("pnlInputs").ClientID %>') in jquery
You are probably best off giving the control a unique CssClass attribute and selecting it with $(".myParentPageControl")
instead of trying to retrieve the ClientID.
Because .NET wants to control all of the IDs, you're better off assigning class names and using them instead.
As you are asking equivalent to JQuery . It will be $('#<%= UserControl.FindControl("pnlInputs").ClientID %>')
Additionally check this link http://blog.qumsieh.ca/2009/03/26/jquery-accessing-the-client-generated-id-of-aspnet-controls/