I am calling a javascript function from .cs file which is as below:
private string CallValuesScript()
{
StringBuilder sb = new StringBuilder();
sb.AppendLine("$(document).ready(function() {");
sb.AppendLine("DisplayValues();");
sb.AppendLine(" });");
return sb.ToString();
}
I have two integers declared at class level private int ratingLinkId = 0 ; private int ratingValue = 0;
Please let me know how I can pass these two integer values to the function "DisplayValues();" ?
I have the javascript function is aspx as below:
function DisplayRatings(id, count) {
//code
}
Thanks