title: How to Pass QueryString in window.location.href?
body: <p>I have written the following javascript function</p>
  
  <pre><code>function getval(sel)
   {
      window.location.href = "Posts?Category=&lt;%= sel %&gt;";
   }
  </code></pre>
  
  <p>but the value of sel variable is not considered in querystring..</p>
  
  <p>Instead of it, it takes value like following.</p>
  
  <p>...../Post/Posts?Category=%3C%=%20sel%20%%3E</p>
  
  <p>Can anyone help me???</p>