1

I found the same question in stackoverflow forum, but they decided not to help me.

I'm using that code:

<script type="text/javascript">
    var testVar = '<%=Model.testProperty %>';

Then I paste testVar into alert() method and see only '<%=Model.testProperty %>' as text, but I need access to Model.testProperty value. Help me please

Cheran Shunmugavel
  • 8,319
  • 1
  • 33
  • 40
Andrey
  • 11
  • 2
  • Try this http://stackoverflow.com/questions/16361364/accessing-mvcs-model-property-from-javascript – Sandeep Jul 23 '14 at 16:28

0 Answers0