<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Club Web Site Starter Kit</title><link>http://forums.asp.net/1004.aspx</link><description>Discussions about Microsoft's Club Web Site Starter Kit for ASP.NET 2.0.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Restricting Access to Pages by Roles</title><link>http://forums.asp.net/thread/3330133.aspx</link><pubDate>Wed, 05 Aug 2009 03:19:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3330133</guid><dc:creator>jcb871</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3330133.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=3330133</wfw:commentRss><description>&lt;p&gt;Thank you a lot for that code... :)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I need tyo show some message when the user is not authorized to view the page.&lt;/p&gt;&lt;p&gt;Now it automatically redirects to login page.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks for help :)&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Restricting Access to Pages by Roles</title><link>http://forums.asp.net/thread/3226596.aspx</link><pubDate>Thu, 11 Jun 2009 20:24:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3226596</guid><dc:creator>bullpit</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3226596.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=3226596</wfw:commentRss><description>&lt;p&gt;You are welcome.&lt;/p&gt;</description></item><item><title>Re: Restricting Access to Pages by Roles</title><link>http://forums.asp.net/thread/3226590.aspx</link><pubDate>Thu, 11 Jun 2009 20:21:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3226590</guid><dc:creator>redwoodbev</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3226590.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=3226590</wfw:commentRss><description>&lt;p&gt;Thank you so much.&amp;nbsp; That worked like a charm!&amp;nbsp; Bev&lt;/p&gt;</description></item><item><title>Re: Restricting Access to Pages by Roles</title><link>http://forums.asp.net/thread/3226491.aspx</link><pubDate>Thu, 11 Jun 2009 19:26:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3226491</guid><dc:creator>bullpit</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3226491.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=3226491</wfw:commentRss><description>&lt;p&gt;Are these pages in a separate folder or under the root folder directly? Sitemap trimming only hides the links to the pages in the menu, it won&amp;#39;t prohibit access to the secured pages. You have to apply some sort of restriction separately. You can do that by &amp;lt;location&amp;gt; tag in web.config file like this:&amp;nbsp;&lt;pre class="coloredcode"&gt;&amp;lt;location path=&amp;quot;SecuredFolder/SecuredPage.aspx&amp;quot;&amp;gt;
    &amp;lt;&lt;span class="tag"&gt;system.web&lt;/span&gt;&amp;gt;
      &amp;lt;&lt;span class="tag"&gt;authorization&lt;/span&gt;&amp;gt;
        &amp;lt;&lt;span class="tag"&gt;allow&lt;/span&gt;&lt;span class="attr"&gt; roles=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Administrators, Users&amp;quot;&lt;/span&gt;/&amp;gt;
        &amp;lt;&lt;span class="tag"&gt;deny&lt;/span&gt;&lt;span class="attr"&gt; users=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;*&amp;quot;&lt;/span&gt;/&amp;gt;
      &amp;lt;/&lt;span class="tag"&gt;authorization&lt;/span&gt;&amp;gt;
    &amp;lt;/&lt;span class="tag"&gt;system.web&lt;/span&gt;&amp;gt;
  &amp;lt;/&lt;span class="tag"&gt;location&lt;/span&gt;&amp;gt;&lt;/pre&gt;&amp;nbsp;</description></item><item><title>Restricting Access to Pages by Roles</title><link>http://forums.asp.net/thread/3226433.aspx</link><pubDate>Thu, 11 Jun 2009 18:59:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3226433</guid><dc:creator>redwoodbev</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3226433.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1004&amp;PostID=3226433</wfw:commentRss><description>&lt;p&gt;Hi.&amp;nbsp; My clubsite is online now, thanks to help from this forum.&amp;nbsp; I would like to be able to restrict access to events and maybe some other pages by roles.&amp;nbsp; Right now it looks like there are three roles, Administrators, Members(anyone logged in) and Guests (anyone not logged in).&amp;nbsp; I&amp;#39;m familiar with how the classified starterkit controls access by using roles in the sitemap file.&amp;nbsp; That doesn&amp;#39;t seem to work with the clubsite.&amp;nbsp; Would someone point me in the right direction to limit access to pages based on user status or roles?&lt;/p&gt;
&lt;p&gt;Thanks, Bev&lt;/p&gt;</description></item></channel></rss>