Deny anonymous users and showing link!

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.
 
C

Cowboy \(Gregory A. Beamer\)

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!
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top