I think that you will be able to pass data from aspx page to html page in the GET method. Check the below code for example:
Code:
Response.Redirect("testing.htm?val1=einstein_007");
Below is the testing.htm page with the following example:
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script language ="javascript" >
function GetParam(name) {
var start=location.search.indexOf("?"+name+"=");
if (start<0) start=location.search.indexOf("&"+name+"=");
if (start<0) return '';
start += name.length+2;
var end=location.search.indexOf("&",start)-1;
if (end<0) end=location.search.length;
var result='';
for(var i=start;i<=end;i++) {
var c=location.search.charAt(i);
result=result+(c=='+'?' ':c);
}
return unescape(result);
}
function f1() {
document.getElementById("resdiv").innerHTML = GetParam('val1');
}
</script>
</head>
<body onload ="f1()">
<div id="resdiv"></div>
</body>
</html>
Bookmarks