I would like to access a c# variable value inside a javascript function whose code is similar to this snippet below:
@{
var i=0;
}
....
<script type=\"javascript\">
function MyObjects(e) {
for (j = 0; j <= @i; j++) {....}
</script>
.....{
i=@i+1;}





Rating:
The post How to access c# variable value in javascript function in .net MVC3? appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/how-to-access-c-variable-value-in-javascript-function-in-net-mvc3.html
No comments:
Post a Comment