I want to use window with partial view.
There are two function in partial view. When window was opening I got error : "Uncaught SyntaxError: Unexpected token :"
If I remove second parameter(prm2) in second function(getCustomer2) then it works fine.(MyWindowPartial.cshtml line 14)
What can I do?
<script>
function getCustomer1() {
return { wfTypeId : @(Html.Raw(Json.Encode(ViewBag.WfTypeId))),
folderIdList : @(Html.Raw(Json.Encode(ViewBag.WfTypeId))) }; }
function getCustomer2() {
return { wfTypeId : @(Html.Raw(Json.Encode(ViewBag.WfTypeId))),
prm2 : "deneme" };
}
</script>
There are two function in partial view. When window was opening I got error : "Uncaught SyntaxError: Unexpected token :"
If I remove second parameter(prm2) in second function(getCustomer2) then it works fine.(MyWindowPartial.cshtml line 14)
What can I do?
<script>
function getCustomer1() {
return { wfTypeId : @(Html.Raw(Json.Encode(ViewBag.WfTypeId))),
folderIdList : @(Html.Raw(Json.Encode(ViewBag.WfTypeId))) }; }
function getCustomer2() {
return { wfTypeId : @(Html.Raw(Json.Encode(ViewBag.WfTypeId))),
prm2 : "deneme" };
}
</script>