Sign in | Join
Last post 11-11-2009 1:29 PM by sparrow37. 6 replies.
Sort Posts: Oldest to newest Newest to oldest
Hi all,
I have a treeview control in my master page and login control as well. treeview has a link 'change password' . I have used change password control on that page. I want to make sure that change password link is available in treeview user is logged in. How to hide it for annonymous users. Please helpme on this.
Regards,
Asif Hameed
are you binding your menu from your web.sitemap file?
If you are then you can enable security trimming to automatically hide this.
Thanks for your response.
I dont have enabled roles in my application. How Can I accomplish this without adding roles attribute in sitemap node.
Suggestion please? I need help urgently.
Um, using session or cookie to store the logined user's information, for example, the user's IDs, or emails, and now according to these information to generate nodes for TreeView control dynamically.
sparrow37:Thanks for your response. I dont have enabled roles in my application. How Can I accomplish this without adding roles attribute in sitemap node. Regards, Asif Hameed
Why make things difficult for yourself? Enabling roles is simple and you dont have to use the feature for anything other than this.
You don't have to setup roles for all of your users - there are some built in ones which will meet your needs:
* means all authenticated users
? means anonymous users
Can some one please send me code sample, link of site where it is done ? What i need to put in web.config and what I need to use in my treeview nodes ?