I have an Ajax ModalPopupExtender, inside an UpdatePanel, with a Submit button that triggers a click event.
It works fine the first time. If after using it I display the page without the Popup, and then later show it
again, it works fine again. But if right after showing it (and the client submitting it), I display the page
with the popup showing again, it's displayed ok, but if Submit is clicked, it just disappears, but there is no postback to the server.
If I look at the html source sent to the browser in this second display, it contains extra code (something
about AjaxControlToolkit.ModalPopupBehavior.invokeViaServer etc.). But nothing is different in the code that
executes, except that the previous display was different. I've tried using UpdatePanel.Update(), but the behavior remains the same.
I have not been able to find any discussion on the web of this specific scenario. Can anyone help?
I too have the same problem but in my case first time the modal popup will fire and call the server side code and in the next time if i click on the button which fires the modal pop up nothing happens.
I found no solution, but I am using the following workaround:
- I send out the same page WITHOUT the popup (this seems to
clear whatever setting is causing the problem)
- and then send it out AGAIN, this time with the popup, which
then works ok
- however, if the second send is done too quickly after the
first, it sometimes produces a spurious "Event Validation.."
error - so I've had to turn off EnableEventValidation on
that page (which is not good, but I do my own programmatic
YES it really bothers us. That's why there are those nifty convienent code block tags for you to use. And responses like this to long-term members will get you noticed, and no one will be willing to help you in the future. Even if it does have a smiley face at the end.
What is the problem you are facing in saving the multiple rows.You have several ways to do it.
either you save it one by one ie call db one by one for all rows those are selected.
or another way you can,create the input in xml form and send to db and there parse the xml and save it in the table.