tags:

views:

12

answers:

1

I have tr and inside tr, there are gridview and image button. I want to when i click activate/deactivate button, the the controls inside the tr get disabled and enabled. when disabled, i dont want to allow user to click on gridview and imagebutton.

A: 

Hey,

Make the with runat="server", and setting the disabled property may trickle down to its children. Or, do:

<tr>
   <asp:Panel id="p1" runat="server">
       ctls
   </asp:Panel>
</tr>

And set the panel.enabled = false on the server will disable it...

If that doesn't help, could you provide more details?

HTH.

Brian