Hi. I'm trying to set a javascript variable named tire_type equal to a vb.net variable named TireBrand. TireBrand is a PUBLIC variable in the code-behind. As you can see I'm trying to set tire_type = "AfterMarket" if the TireBrand varible is Null.
However, I keep getting the error "Name 'ProductTitle' is not declared."
<script language="javascript">
if (<%=TireBrand%> != null)
tire_type="<%=TireBrand%>";
else if (<%=TireBrand%> = null)
tire_type="AfterMarket";
</script>
Can someone please tell me what I'm doing wrong? Thanks!
However, I keep getting the error "Name 'ProductTitle' is not declared."
<script language="javascript">
if (<%=TireBrand%> != null)
tire_type="<%=TireBrand%>";
else if (<%=TireBrand%> = null)
tire_type="AfterMarket";
</script>
Can someone please tell me what I'm doing wrong? Thanks!