Currently I have a function called in the following way:
<script type="text/javascript">
getCities('<%=BusinessID %>');
</script>
This works without any problem, now I want to do the same on an onchange event in a asp:dropdownlist as following:
<asp:DropDownList ID="ddlAddressSPC" runat="server" clientidmode="Static" AutoPostBack="False" onchange="javascript:getCities('<%=BusinessID %>');" Width="306px" CssClass="txt12NormalLeft" ToolTip="Select State|Province|County" />
But now the ASP.net variable isn't evaluated and is passed as <%=BusinessID %> instead of the value.
If I do the same code in a normal HTML select it isn't a problem. What am I missing here?