Is it possible to insert a c# variable into a inline javascript function?
I'm using razor to pass the select boxes id.
<select id="@itemid" style="float:right" class="input" onchange="window.location.href='@url3' + 'booking/' + '?d=' + '[email protected][[email protected]].value">
</select>
The above does not work. I get a "does not contain a definition for 'form'" error.