March 15th, 2005AllWebMenus with Storefront and aspx
Q: I have created an horizontal menu and using it along with the storefront application. However this requires a session code ID setup.
How can I carry a session code over, in an .aspx setup?
A: Please try to generate the following script block via "page_load" using server-side coding.
——————————-
<script>
JSID='<?=$ID?>';
JSIDVar='<?=$IDVar?>';
function func_name1(){ window.location="prop-func1.php?"+JSID+"="+JSIDVar
}
function func_name2(){ window.location="prop-func2.php?"+JSID+"="+JSIDVar
}
</script>
——————————-
In order to attach this script to the produced web page you should use the method:
RegisterClientScriptBlock
You can find more information about it on MSDN.