Page Jump code: src= "addclffour.aspx?id=<%= request.querystring[" ID "]. ToString ()%> ">, via" request.querystring["ID". ToString () "Pass the parameter ID to addclffour, how do I get the ID value of the page from the Addclffour page?"
Here are three ways to simply describe how to implement JS to get the values from the previous page
1. The simplest method
var wxjdid= <%=request.querystring["ID"]%>;
Get the ID by request.querystring.
2. With Addclffour backstage
public string Strwxjd; The background defines the variable strwxjd=request.querystring["ID". ToString (); Receive the ID value passed over
JS to receive the ID on it.
var wxjdid= "<%= strwxjd%>";
Using a function in 3.js
function Getparameterbyname (name) { name = Name.replace (/[\[]/, "\\\["). Replace (/[\]]/, "\\\]"); var regexs = "[\\?&]" + name + "= ([^&#]*)"; var regex = new RegExp (REGEXS); var results = regex.exec (window.location.search); if (results = = NULL) return null; else return decodeURIComponent (Results[1].replace (/\+/g, "")); }
JS in the Call Method Getparameterbyname () can.
For this issue, only the implementation of these three methods is verified for the time being. The problem is that the project needs to be produced, although very simple, I think it is necessary to tidy up a bit.