Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi

I am C# developer.I am creating menus using web.sitemap file,where i have to control(to make accessible) those menus from login page based on type of user(Admin,Employee) like this.

I have to achieve this task without using sqldatabase instead we can make use of sitemapdatasource,xmldatasource.

SO i am not able to achieve controls of of xml file in asp.cs page.

If anybody has come across this type of problem and has solutions please let me know.

If so let me know the code.

Thank you
Posted
Comments
Sergey Alexandrovich Kryukov 10-Nov-11 18:16pm    
OK, you are not able to do something... and where is your question?
--SA

If the functionality you want isn't in the control out-of-the box, and you can't use the functionality available to you, you'll have to roll your own.

You can start here:
http://msdn.microsoft.com/en-us/library/system.web.ui.hierarchicaldatasourcecontrol.aspx[^] That is the base class for SiteMapDataSource.

This is a common approach for bits inside ASP.NET that don't fit for you. I've written more than one Auth & Auth provider.

Cheers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900