web.sitemap :
      <siteMapNode title="Edit Squad" url="Admin/EditSquad.aspx"
                  description="Edit the players in the squad"
                  roles="Reporter,Owner"/>
    Admin/web.config :
      <location path="EditSquad.aspx">
        <system.web>
          <authorization>
            <allow roles="Reporter" />
          </authorization>
        </system.web>
      </location>
   结果:  作为Reporter登陆,Admin/EditSquad.aspx链接和内容均可见。
   若:  web.sitemap : roles="Owner"/> ,作为Reporter登陆,链接和内容仍均可见。
   若:  Admin/web.config :<allow roles="Owner" />,作为Reporter登陆,仅链接可见。
   若:  web.sitemap : roles="Owner"/> ,Admin/web.config :<allow roles="Owner" /> ,作为Reporter登陆,链接和内容仍均不可见。
  
Posted on 2007-04-03 17:12  小鼬  阅读(410)  评论(1)    收藏  举报