1、aspx页面,进行页面跳转
window.location.href = "ProviderInfo.aspx?ProviderID="+ProviderID;
2、ProviderInfo页面获取参数 ProviderID
1)script.js
function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象 var r = window.location.search.substr(1).match(reg); //匹配目标参数 if (r != null) return unescape(r[2]); return null; //返回参数值 }
2)界面调用fuction
var ProviderID = getUrlParam("ProviderID");