Deny anonymous users and showing link!

  • Thread starter Thread starter tranky
  • Start date Start date
T

tranky

hi...
....i've a question for you!
I use in web.config this:

<location path="xxx/yyy">
<system.web>
<authorization>
<allow roles="x1,x2,x3,x4"/>
<deny users="?"/>
</authorization>
</system.web>
</location>

And in a sitemap this:

<siteMapNode title="xxxxxxxxx" description=""
url="~/xxx/yyy/page.aspx"></siteMapNode>

I want show the page.aspx link in my menu, but i don't want allow
anonymous users to access it.

It is possible?

Now...the page.aspx link is not showed in my menu.
 
Yes, through code, but why?

Why not create an anonymous template and a logged in template on the page.
When logged in users see the page, they see what you want, when anon users
hit it, they see "you are not allowed here". Solves your problem both on the
menu and on the page.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside the box!
*************************************************
 
Back
Top