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?
You can also do
pnl.Style["display"] = "block";
pnl.Attributes.Add("style", "display:block");
is correct ... got it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With