I have a div element on my page that I wish to show/hide based on a session value in my code-behind. How can I do this?
Give the div "runat="server" and an id and you can reference it in your code behind.
"runat="server"
id
code behind
In code behind: { theDiv.Visible = false; } 0 讨论(0) 查看其它9个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
In code behind:
{ theDiv.Visible = false; }