Trigger Button1_ServerClick event from a popup form...

R

rmorvay

I allow users to click a datagrid row and it spawns another browser page to
allow edits to the data in that row. Once they update the data, it is
committed to the database and the form is closed. Once the edit page is
closed, I need to trigger the search button click event in order to refresh
the datagrid with the original search criteria. I cannot figure out how to
trigger the Button1_ServerClick event of the main page from the called popup
page before I close the popup page. I tried to use a delegate but the
calling page is referenced via a hyperlink and I cannot trap the event that
calls the page to get a handle before the page is loaded. I hope this
makes sense. Regardless, trying to keep it simple. How do you trigger an
event on one form from another form.

Thanks in advance.
 
N

notTold

How are you opening your second window?
Are you doing a "window.open target=_blank"? or are you doing a
"window.showModal[less]Dialog"?

If you are using a dialog, then i would suggest the following
(approximately):

function popupMyDialog(... myArguments ...){
var retval = window.showModalDialog(... args here ...);

if(retval)
__doPostBack('mySearchButton');
}

If you are using window.open to open the second window, then i do not have
any idea how you would go about doing this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top