What is the ASP.NET 2.0 approach for dynamic in-page JavaScript? I use themes and set other things programmatically like meta data in the MasterPage code behind file.
But what is the best way to approach complicated in page JavaScripting that has server-side session variables set into it? Do you have to do it in the page mark-up still? Or is there a code-behind approach to this?
The classic ASP:
<== Some people say they are afraid of heights. With me its table widths. ==>
But what is the best way to approach complicated in page JavaScripting that has server-side session variables set into it? Do you have to do it in the page mark-up still? Or is there a code-behind approach to this?
The classic ASP:
Code:
<script language="JavaScript" type="text/javascript">
var somevar = <%=session("sessionvar")%>;
</script>
<== Some people say they are afraid of heights. With me its table widths. ==>