ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How I send all input in page (viewmodel) to awe.oc
Title:
B
I
{code}
?
from http://demo.aspnetawesome.com/CallDemo In page have much more input val I want to call action via awe.oc and send param in viewModel pattern such as html @Html.Awe().InitCall("callHi").Url(Url.Action("SayHi")).Success("echo") js awe.oc('callHi', { params: { myviewmodel : ???? } }); controller public string SayHi(Myviewmodel myviewmodel)
Save Changes
Cancel
nutfergie
asked at 21 Dec 2017
assuming your viewmodel has Id and Name properties: `awe.oc('callHi', { params: { id: 20, name: 'foo' } });`
at 21 Dec 2017
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK