Users Pricing

forum

home / developersection / forums / modify razor params within javascript

Modify Razor params within Javascript

Jayden Bell 2228 02 Dec 2014

I am trying to modify parameters routeValue in Razor within Javascript. 

function setForm(param) {
   var formCariEntitas = '@Html.Action("FormCariEntitas", "Registrasi", New With {.id = "entitas"'+param+'})';
   return formCariEntitas;
}

But the error said, "param is not declared. It may be inaccessible". Is there any other way? Is it possible? Thanks


Jayden Bell

Other


1 Answers