A
Ahmd
I have a Repeater to which a sitemap is bound, i want to remove or
hide any node while form load
<asp:Repeater runat="server" ID="menu"
DataSourceID="SiteMapDataSource1" EnableViewState="False">
<ItemTemplate>
<li>
<asp:HyperLink ID="HyperLink1"
runat="server" NavigateUrl='<%# Eval("Url") %>'><%# Eval("Title") %></
asp:HyperLink>
<asp:Repeater ID="Repeater1"
runat="server" DataSource='<%# CType(Container.DataItem,
SiteMapNode).ChildNodes %>'>
<HeaderTemplate>
<ul>
</HeaderTemplate>
<ItemTemplate>
<li>
<asp:HyperLink
ID="HyperLink2" runat="server" NavigateUrl='<%# Eval("Url") %>'><%#
Eval("Title") %></asp:HyperLink>
</li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>
</li>
</ItemTemplate>
</asp:Repeater>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"
ShowStartingNode="false" />
I have the site map attached to the repeater.
site map
<siteMapNode url="~/Default.aspx" title="Home" description="">
<siteMapNode title="IRF / IDF ">
<siteMapNode url="~/IRF.aspx" title="IR Form" />
<siteMapNode url="~/IDF.aspx" title="ID Form" />
</siteMapNode>
<siteMapNode title="Membership">
<siteMapNode url="~/Membership/CreatingUserAccounts.aspx"
title="Create User" />
<siteMapNode url="~/Membership/PagePermission.aspx"
title="Authorisation" />
</siteMapNode>
<siteMapNode title="MIS">
<siteMapNode url="~/MIS.aspx" title="MIS" />
<siteMapNode url="~/Department.aspx" title="Department" />
<siteMapNode url="~/IRFReport.aspx" title="Test" />
</siteMapNode>
</siteMapNode>
</siteMap>
Want to hide or remove one or 2 node on page Load
pls help
hide any node while form load
<asp:Repeater runat="server" ID="menu"
DataSourceID="SiteMapDataSource1" EnableViewState="False">
<ItemTemplate>
<li>
<asp:HyperLink ID="HyperLink1"
runat="server" NavigateUrl='<%# Eval("Url") %>'><%# Eval("Title") %></
asp:HyperLink>
<asp:Repeater ID="Repeater1"
runat="server" DataSource='<%# CType(Container.DataItem,
SiteMapNode).ChildNodes %>'>
<HeaderTemplate>
<ul>
</HeaderTemplate>
<ItemTemplate>
<li>
<asp:HyperLink
ID="HyperLink2" runat="server" NavigateUrl='<%# Eval("Url") %>'><%#
Eval("Title") %></asp:HyperLink>
</li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>
</li>
</ItemTemplate>
</asp:Repeater>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server"
ShowStartingNode="false" />
I have the site map attached to the repeater.
site map
<siteMapNode url="~/Default.aspx" title="Home" description="">
<siteMapNode title="IRF / IDF ">
<siteMapNode url="~/IRF.aspx" title="IR Form" />
<siteMapNode url="~/IDF.aspx" title="ID Form" />
</siteMapNode>
<siteMapNode title="Membership">
<siteMapNode url="~/Membership/CreatingUserAccounts.aspx"
title="Create User" />
<siteMapNode url="~/Membership/PagePermission.aspx"
title="Authorisation" />
</siteMapNode>
<siteMapNode title="MIS">
<siteMapNode url="~/MIS.aspx" title="MIS" />
<siteMapNode url="~/Department.aspx" title="Department" />
<siteMapNode url="~/IRFReport.aspx" title="Test" />
</siteMapNode>
</siteMapNode>
</siteMap>
Want to hide or remove one or 2 node on page Load
pls help