Roles and Site map etc.
I want to allow access to a page, menu item or chunk of code by whether the user is authenticated/registered. For code like this: this.User.IsInRole("Administrators") how would I do it for registered users?
And this code from the web.sitemap the same question:
<siteMapNodetitle="$Resources: SiteMap, Admin"url="~/Admin/Default.aspx"roles="Administrators,Editors,Contributors">
One last thing: I chnaged the Sitemap by adding a node and received this message: The resource object with classname 'SiteMap' and key 'Account' was not found.
Was not found where? Is there another place I need to change something?
Thanks everyone, for some reason this stuff is eluding me,