返回首页

尊敬的先生/马姆

我现在使用ASP:菜单


我要隐藏母版页的组当我按下基于ASP时,菜单
{BR该div不上其他页面只显示主页。

回答

评论会员:kanjoliaGOPAL 时间:2012/02/06

Use runat="server" with div tag and id then you can hide div from code behind

You can hide this div on any page which link to that particular Master page

For Example:-

 

 

DIVID.visible=false;


<div id="DIVID"   runat="server">

 

评论会员:sandeep08mca 时间:2012/02/06

In master page you place that div on contentplaceholder like this 

的{体C3}{的C4}{C5的}
评论会员:游客 时间:2012/02/06
hitech_ssc:你可以找到这样的内容页的母版页控制//你的分区应包含的属性{5233}//找到与id关联的div{C7-}//隐藏的div{C8的}
Anuja帕瓦尔多尔:试试这个

HtmlGenericControl DivCount = (HtmlGenericControl)Page.Master.FindControl("MainH").FindControl("DivCount");

 DivCount.Visible = false;