title: LoginView Control to show logged in view only for specific user's
body: <p>So am using LoginView Control. This is what I know, if a user is logged in it will show Loggedin View of the template otherwise it shows AnonymousTemplate. This works on my page. I have used this on multiple pages. </p>
  
  <p>Now my question is:</p>
  
  <ol>
  <li><p>Is there a way I can restrict the loggedin view from displaying for non-members even if they are logged in. In other words, The loggedin view should be display only for typeA members and not typeB.</p></li>
  <li><p>Is there a way I can programmatically hide Loggedin/AnonymousTemplate for specific user's.
  example: In Code behind:</p>
  
  <pre><code>If(type of member == A) then
     Loggedin.visible = true
  else
   loggedin.visible = false
  end if
  </code></pre></li>
  </ol>
  
  <p>I know #2 doesn't seem to be right, but I don't know which is the best possible way ?</p>
  
  <pre><code>&lt;asp:LoginView id="LoginView1" runat="server"&gt;
         &lt;AnonymousTemplate&gt;
               Please log in for personalized information.
         &lt;/AnonymousTemplate&gt;
         &lt;LoggedInTemplate&gt;
               Thanks for logging in 
               &lt;asp:LoginName id="LoginName1" runat="Server"&gt;&lt;/asp:LoginName&gt;.
         &lt;/LoggedInTemplate&gt;
  &lt;/asp:LoginView&gt;
  </code></pre>