I am new in ASP.NET and C#...
I create menu for my website using web.sitemap..I'm NOT use the ROLE..
I call that menu in master page using repeater..
I want to ask, how can I hide some sitemap menu based on user login using repeater?
I have 2 type of user,Admin and Mmember..
Thank you for your feedback..

Re: hide some sitemap menu based on user login using repeater 80 80
Member Avatar

I have 2 type of user,Admin and Mmember

You can create 2 sitemaps 1 for Admin and the other 1 for Members.

You can used a Filtering Site-Map:

http://msdn.microsoft.com/en-us/library/ms178429%28v=vs.100%29.aspx

or you can used this example:

http://stackoverflow.com/questions/6401335/show-hide-sitemap-menu-repeater-on-masterpage

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.