[RESOLVED FINALLY!] Grab param value
I'm using javascript along with asp.net and vb.net and have some questions.
I have a page that loads with parameters in the URL. Looks something like this:
http://www.page.com/page.aspx?tokenID=133
There's a dropdown list in my page, and when the value is changed I have javascript that automatically reloads the page and creates another parameter in the url using the value of the selected dropdownlist. Problem is it removes my tokenID paramter with this new one (ProspectID), but i need them both in there. Here's my javascript:
Code:
var pval = document.forms["_ctl0"].ProspectHeader_ProspectsMainListBox1;
var javaid = pval.options[pval.selectedIndex].value;
window.location.href ="http://www.page.com/ProspectMenu.aspx?ProspectID=" + javaid;
I know I need to grab the value of my tokenid parameter and add it to my window.location.href but I'm not sure how to do that.
Thanks!