An asp:Panel just produces a div element. This isn't a form control, it's just there for structure. To disable every input control inside of it, if you are using jQuery, try: $("#<%=mypanel.ClientID%> input").attr("disabled", true); Or plain ol' JavaScript: var controls = document.getElementById("<%=mypanel.ClientID%>").getElementsByTagName("input"); for (var i = 0; i < controls.length; i++) controls[i].disabled = true;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)