ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Closing popup form with OK button not working
Title:
B
I
{code}
?
I have a popup form that contains a grid. I see in the browser's network log that when the popup is opened, the GET method is called, which is immediately followed by a POST back to the server to pull in the data for the grid. Now when I click on OK to close the window, the POST method back to the action that opened the popup form isn't being called, so I can't pass a JSON object back in order to close the window. I could do this just as easily with a normal popup, but I like to have the OK and Cancel buttons at the bottom of the window. How can I get the OK button to simply close the window (it's not actually saving anything)?
Save Changes
Cancel
Sean Davidson
asked at 25 Nov 2020
PopupForm Ok button will post the form inside the popup, which you probably don't have, here's a demo for a popup with buttons that can close the popup: https://demo.aspnetawesome.com/PopupDemo#Buttons
at 25 Nov 2020
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