ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Can PopupFormAction return values ?
Title:
B
I
{code}
?
I have a button like this : <button onclick="@(Url.Awe().PopupFormAction().Url(Url.Action("mypopup", "mycontroller")).Success("myrefresh"))"></button> and the controller like this : [HttpPost] public virtual ActionResult mypopup(MyViewModel viewModel) { ... return Json(new { ReturnId = newid }); } Is it possible to get the ReturnId on client side ?
Save Changes
Cancel
mtugnoli
asked at 25 Mar 2014
Answers
B
I
{code}
?
yes you get it in the myrefresh js function like this: function myrefresh(o){ alert(JSON.stringify(o)); }
Save Changes
Cancel
Omu
answered at 25 Mar 2014
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