G
Guest
I have a form, has javascript registered so a modal pops up.
Button click will close form.
Now I need to do an update with modal form data before it closes.
I can put a second button and register the onclick attribute of the second
button
to the javascript to close the form after user clicks upload button
click upload do the update to database then programmatically click the
second button the use on onclick attribute that sees the registered
javascript and closes the modal
HOw do I programmatically invoke the button onclick method
found another thread that say use
this.InvokeOnClick(button1, EventArgs.Empty);
but my form does not compile says there is not definition for
InvokeOnClick.?????
Button click will close form.
Now I need to do an update with modal form data before it closes.
I can put a second button and register the onclick attribute of the second
button
to the javascript to close the form after user clicks upload button
click upload do the update to database then programmatically click the
second button the use on onclick attribute that sees the registered
javascript and closes the modal
HOw do I programmatically invoke the button onclick method
found another thread that say use
this.InvokeOnClick(button1, EventArgs.Empty);
but my form does not compile says there is not definition for
InvokeOnClick.?????