I have a controller
public ActionResult controller(){
Viewclass view = new Viewclass();
...
return PartialView("Tab", view);
}
In which the view class is something like, the string A and B is my compiled JSON string.
public class ViewClass
{public string A {get;set;}
public string B {get;set;}
}
In the Partial view, I want to do
<script type="text/javascript">
RunMap( @Model.A, @Model.B);
</script>
The problem is the " is parsed as ", like {"City":} into the function. How can I fix this?