title: How to Check logged in user for multiple Roles in Asp.Net membership?
body: <p>I have programmatically bind repeater in my code behind file. I am also checking for roles in my page like below and according to that I am binding my repeater control like this;</p>
  
  <pre><code>if (Page.User.IsInRole("Admin"))
  {
      repeaterArticlesList.DataSource = ArticleAccess.GetArticlesWithNoPaginate();
      repeaterArticlesList.DataBind();
  }
  else if(Page.User.IsInRole("Editor"))
  {
      repeaterArticlesList.DataSource = ArticleAccess.GetArticlesWithNoPaginate();
      repeaterArticlesList.DataBind();
  }
  else 
  {
      string userName = Page.User.Identity.Name.ToString();
      repeaterArticlesList.DataSource = ArticleAccess.GetArticlesWithNoPaginateWithUsername(userName);
      repeaterArticlesList.DataBind();
  }
  </code></pre>
  
  <p>I have total 4 roles i-e <strong>Admin, Author, Editor, User</strong>. However, I have one user i-e <strong>admin</strong> which belongs to all of these roles. 
  The problem with my logic is that when I logged in as an admin user (which belongs to all 4 roles), the first condition and the second condition both fails and the last one is executed.
  So, <strong>I want to execute my first condition for that user which must be in all of my roles 4 roles.</strong>
  Otherwise then I will check for individual roles.
  Any help regard to this is appreciated in advance.</p>