Hi I am developing MVC5 application. I have one partial view and it is basically popup. I am calling on click of link button as below.
window.open("/UploadDocument/ScannerUpload", "popupWindow", "width=1000,height=900,scrollbars=yes");
Below is my ScannerUpload.cshtml
file.
<html>
<head>
<script type="text/javascript">
{
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
var foo = getParameterByName('Param1');
}
</script>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<title>ScannerView</title>
</head>
<body>
<div>
<iframe src="http://Scanner.aufytech.com/C3CKYC Scanner.xbap?" width="1000" height="600" scrolling="auto"></iframe>
</div>
</body>
</html>
I want to send some params to ScannerUpload.cshtml
file. May i know is there any way i can append params to ScannerUpload.cshtml
? Any help would be appreciated. Thank you.