Hi,
Here I have created javascript that will help you out.
This javascript code will help you to get querystring value for both url
"index.html#id=1&name=aspforum" and
"index.html?id=1&name=aspforum"
Javascript
<script type="text/javascript">
window.onload = function () {
var Id = getUrlVars()["id"];
var Name = getUrlVars()["name"];
};
function getUrlVars() {
var vars = [], hash;
var indexofHash = window.location.href.indexOf('#');
var hashes;
if (indexofHash == -1) {
hashes = window.location.href.slice((window.location.href.indexOf('?')) + 1).split('&');
} else {
hashes = window.location.href.slice((window.location.href.indexOf('#')) + 1).split('&');
}
for (var i = 0; i < hashes.length; i++) {
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
return vars;
}
</script>