<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.community-credit.com/cs/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>ASP.NET</title><link>http://www.community-credit.com/cs/forums/22.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>Re: Using LoginView Control with Roles</title><link>http://www.community-credit.com/cs/forums/thread/4575.aspx</link><pubDate>Mon, 03 Mar 2008 14:44:59 GMT</pubDate><guid isPermaLink="false">dc2d8ed1-db5f-43a8-9632-42f90caf747d:4575</guid><dc:creator>PeteO'Hanlon</dc:creator><slash:comments>0</slash:comments><comments>http://www.community-credit.com/cs/forums/thread/4575.aspx</comments><wfw:commentRss>http://www.community-credit.com/cs/forums/commentrss.aspx?SectionID=22&amp;PostID=4575</wfw:commentRss><description>Very nice. I didn't know you could do that - it just goes to show; there's always something new to learn.</description></item><item><title>Re: Using LoginView Control with Roles</title><link>http://www.community-credit.com/cs/forums/thread/4542.aspx</link><pubDate>Thu, 21 Feb 2008 19:54:41 GMT</pubDate><guid isPermaLink="false">dc2d8ed1-db5f-43a8-9632-42f90caf747d:4542</guid><dc:creator>DavidSilverlight</dc:creator><slash:comments>0</slash:comments><comments>http://www.community-credit.com/cs/forums/thread/4542.aspx</comments><wfw:commentRss>http://www.community-credit.com/cs/forums/commentrss.aspx?SectionID=22&amp;PostID=4542</wfw:commentRss><description>Nice tip, Satheesh!</description></item><item><title>Using LoginView Control with Roles</title><link>http://www.community-credit.com/cs/forums/thread/4533.aspx</link><pubDate>Thu, 21 Feb 2008 14:58:18 GMT</pubDate><guid isPermaLink="false">dc2d8ed1-db5f-43a8-9632-42f90caf747d:4533</guid><dc:creator>SatheeshBabu</dc:creator><slash:comments>0</slash:comments><comments>http://www.community-credit.com/cs/forums/thread/4533.aspx</comments><wfw:commentRss>http://www.community-credit.com/cs/forums/commentrss.aspx?SectionID=22&amp;PostID=4533</wfw:commentRss><description>&lt;P&gt;Suppose if we want to display some controls or contents based on the users role&amp;nbsp;then this control is a champion of doing it with very less effort.&lt;/P&gt;
&lt;P&gt;Refer the below code for using it.&lt;/P&gt;
&lt;P&gt;&amp;lt;asp:LoginView ID="loginvew" runat="server"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;RoleGroups&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:RoleGroup Roles="2"&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ContentTemplate&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;b&amp;gt;Technical Information:&amp;lt;/b&amp;gt;&amp;lt;%= TechnicalErrorMsg %&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ContentTemplate&amp;gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:RoleGroup&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/RoleGroups&amp;gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:LoginView&amp;gt;&lt;/P&gt;
&lt;P&gt;The content will be visible only for those users with role = 2.&lt;/P&gt;
&lt;P&gt;Thought of sharing this simple tip!&lt;/P&gt;
&lt;P&gt;Happy Coding!!!&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR&gt;Satheesh&lt;BR&gt;&lt;A href="http://www.codedigest.com"&gt;www.codedigest.com&lt;/A&gt;&lt;BR&gt;&lt;A href="http://www.satheeshbabu.com"&gt;www.satheeshbabu.com&lt;/A&gt;&lt;BR&gt;&lt;A href="http://satheeshbabu.blogspot.com"&gt;http://satheeshbabu.blogspot.com&lt;/A&gt;&lt;/P&gt;</description></item></channel></rss>