Passing a string parameter in a JavaScript function on MVC

Posted by PlayKid on Stack Overflow See other posts from Stack Overflow or by PlayKid
Published on 2010-06-17T09:17:52Z Indexed on 2010/06/17 9:23 UTC
Read the original article Hit count: 170

Filed under:
|
|
|

Hi there,

I tried to pass a string value into a JavaScript function like below:

<%= "'" + prop.property_description + "'") %>)

But it does not seems to be the best option, is there a better way to do the above without concatenate the string values with "'"?

Thanks

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about JavaScript