How can I use inline ASP.NET tags inside JavaScript?
- by Bob
How can I use ASP.NET inline tags from within a block of JavaScript? For example:
<script type="text/javascript">
// Do some AJAX here, then redirect to a new page on the next line.
window.location = "/Movie/" + <%= html.encode(MovieName) %>;
</script>