In aspx I have a querystring - www.mysite.com/enter.aspx?dest=#
. When I click "enter" I go to main.aspx
. I want to get this "?dest=#" in main.aspx
with a request.querystring
or something in javascript. I need to use the querystring in javascript in main.aspx for another action.
Any ideas?
let me explain in detail -
I have enter.aspx page that shall load with a querystring -
www.mysite.com/enter.aspx?dest=#
. 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.