设置显示属性中的code背后 [英] setting display property in the code behind

查看:75
本文介绍了设置显示属性中的code背后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何设置的显示属性中的code阻止后面?

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");

不是帮助我..Could请你帮我解决这个问题?

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

推荐答案

pnl.Attributes.Add(风格,显示:块); 是正确的。 .. 得到它了。

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

这篇关于设置显示属性中的code背后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆