pass model field value into a javascript variable

How to pass Model field value into a javascript variable?

How to use Model field value into a javascript variable?

Solution

var firstname = ‘<%: Model.Firstname %>’;

alert(firstname);

 

About the Author

avatar