asp.net mvc 3 - I have a javascript that must generate in runtime. In MVC 3 -


i have javascript must generate in runtime. in controller string view .like asp literal control there method in mvc 3 razor.??? me masters

this might work:

<script type="text/javascript">    @html.raw(model.yourjavascriptstring) </script> 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -