ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to call Js function on error from razor page ONPOST return
Title:
B
I
{code}
?
I am using Curd popup grid to create/update/delete data.I am using below init popupform to open popup @(Html.Awe().InitPopupForm() .Name("EditData") .Resizable(true) .OkText("Edit Package") .Height(300) .Url(Url.Page("", "EditData")) .Success("updated")) Do we have option to call js function on fail/Error? I see option for Success. Is there any other way to do this?
Save Changes
Cancel
Jaeger
asked at 09 Jun 2020
Answers
B
I
{code}
?
There's a global hook for this, and it is already set in `utils.js` (when you call `utils.init`), you can see it here: https://demo.aspnetawesome.com/ErrorHandlingDemo error on popupForm post here: https://demo.aspnetawesome.com/ErrorHandlingDemo#Error-on-popup-form-post
Save Changes
Cancel
Omu
answered at 09 Jun 2020
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