Alex Rivera | Logout

setting display property in the code behind

Asked 2009-09-24T11:40:09.373
11

How can i set the display property to block in the code behind?

<asp:Panel ID="pnlHedgingTypeI"  Style="display:none" runat="server">

pnl.Attributes.Add("display", "block");  

is not helping me ..Could you please help me to resolve this?

Edit
Report

1 Answer

14

pnl.Attributes.Add("style", "display:block"); is correct ... got it.

answered 2009-09-24T11:44:54.043

Your Answer