insert c# code inside javascript
Posted
by niao
on Stack Overflow
See other posts from Stack Overflow
or by niao
Published on 2010-04-23T22:19:24Z
Indexed on
2010/04/23
22:23 UTC
Read the original article
Hit count: 369
JavaScript
|c#
Greetings, how can I inject c# code (my Model property) inside javascript? I want to do something like this:
$(".star<%=Model.ROWGUID %>").mouseover(function() {
var span = $(this).parent("span");
var newRating = $(this).attr("value");
setRating(span, newRating);
});
© Stack Overflow or respective owner