title: Getting QueryString from Request or Javascript
body: <p>In aspx I have a querystring - <code>www.mysite.com/enter.aspx?dest=#</code>. When I click "enter" I go to <code>main.aspx</code>. I want to get this "?dest=#" in <code>main.aspx</code> with a <code>request.querystring</code> or something in javascript. I need to use the querystring in javascript in main.aspx for another action.</p>
  
  <p>Any ideas?</p>
  
  <p>let me explain in detail -
  I have enter.aspx page that shall load with a querystring -
  <code>www.mysite.com/enter.aspx?dest=#</code>. Now when i click the Enter button on Enter.aspx page, it shall goto Main.aspx page. When main.aspx page loads i want to write small javascript in main.aspx that shall get the querystring from the previous enter.aspx page and give it an if condition.
  so if (request.querystring('dest=') > 0
  window.open ('a1.jpg')
  this above code needs to be redesigned so it can work. how can i do this.
  i tried window.location.href.indexof('dest') , nothing happened.</p>