I'm just trying this .net thing out. I've been programming in asp for a few years and I'm having a hard time leaving old ways behind.
In this:
Trying to use the variable "company_id" as <%=company_id%> is not working outside of the <script> block.
How does one refer to a variable outside of the script block?
In this:
Code:
<script runat="server">
public void Page_Load(Object Source, EventArgs E)
{
String company_id = Page.Request.QueryString["company_id"];
referer.Text = company_id;
}
</script>
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml"[/URL] >
<head runat="server">
<title>Untitled Page</title>
<link rel =stylesheet href=css/<%=company_id%>.css />
</head>
Trying to use the variable "company_id" as <%=company_id%> is not working outside of the <script> block.
How does one refer to a variable outside of the script block?