title: How to conditional Redirect using HTML <a> tag depending on QueryString Value in asp.net?
body: <p>I am redirecting to Teammember.aspx page with javascript from code behind.</p>
  
  <pre><code>teammember.Attributes.Add("onclick", "window.location.href='TeamMemberDetails.aspx?Id=" + Id + "'" + "&amp;isabout=true");
  </code></pre>
  
  <p>When coming on TeamMemberDetails.aspx page i have an anchor tag:</p>
  
  <pre><code> &lt;a style="border: 0px none; float: left;" href="TeamMember.aspx"&gt;
      &lt;img alt="&lt;--" src="Images/ArrowLeft.png" style="display: inline-block; cursor: pointer;border: 0 none;" /&gt;
   &lt;/a&gt;
  </code></pre>
  
  <p>Now, Depending on Querystring parameter i.e isabout the page must redirect.
  if isabout=true then it must redirect to Memberlist.aspx page else other.aspx page using HTML Anchor Tag  (Conditional Redirect)</p>