I have a div element:
I want to control this element from the code-behind page an
Give ID and attribute runat='server' as :
ID
runat='server'
//somecode Codebehind: Access at code behind Control Test = Page.FindControl("portlet_tab1"); Test.Style.Add("display", "none"); or portlet_tab1.Style.Add("display", "none"); 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
//somecode Codebehind:
Access at code behind
Control Test = Page.FindControl("portlet_tab1"); Test.Style.Add("display", "none"); or portlet_tab1.Style.Add("display", "none");