On the web side to define the JS method to receive the parameters passed by the client, specifically to get the address of the data after the, each parameter with & segmentation, stored in the array, get.
Specifically as follows:
Defines the method function that gets the parameters in the address
getrequest () {
var url = location.search;
var therequest = new Object ();
if (Url.indexof ("?")!=-1) {
var str = url.substr (1);
STRs = Str.split ("&");
for (var i = 0; i < strs.length i++) {
therequest[strs[i].split ("=") [0]] = (strs[i].split ("=") [1]);
}
return
therequest;
}
var Request = new Object ();
Request = Getrequest ();
var userName = request[' user_name ']; Get user Name
The above is a small set to introduce the WinForm client to the Web address to receive parameters of the method of the relevant knowledge, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!