protected void Menu1_MenuItemDataBound(object sender, MenuEventArgs e)
{
if (e.Item.Text == "login")
Menu1.Items.Remove(e.Item);
}
Use this to remove whatever item you dont want based on your condition
On Mar 15, 2:03 pm, Anitha Manickam <[email protected]> wrote:
> hi all
>
> I created a menu in a webpage, and submenu for the Function
> <asp:MenuItem Text="Function" >
>
> <asp:MenuItem Text="AA"></asp:MenuItem>
>
> <asp:MenuItem Text="BB"></asp:MenuItem>
>
> </asp:MenuItem>
>
> i need to add another Two SubMenu by checking the Condition.So it checks for
> the condition and makes remaining two submenu visible as Fasle/True.
> <asp:MenuItem Text="Function" >
>
> <asp:MenuItem Text="AA"></asp:MenuItem>
>
> <asp:MenuItem Text="BB"></asp:MenuItem>
>
> <asp:MenuItem Text="CC"></asp:MenuItem>
>
> <asp:MenuItem Text="DD"></asp:MenuItem>
>
> </asp:MenuItem>
> Can any 1 help me how to sort this issue
> --
> Warm Regards,
> Anitha Manickam
--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net