asp.net button handler

  • Thread starter Thread starter Bob Weiner
  • Start date Start date
B

Bob Weiner

Using ASP.Net, can I create a button in a pop-up window which will, trigger
an event on the server, close its own window, and refesh the page which
initially spawned the pop-up?

bob
 
Yes.

It has to happen like this: in the server side button click event, after you
did everything, you need to emit javascript. This javascript is what is
going to refresh the parent page and then close the current window.
 
Bob said:
Using ASP.Net, can I create a button in a pop-up window which will, trigger
an event on the server, close its own window, and refesh the page which
initially spawned the pop-up?

bob
yes and no.

You can have it call a server function in the POST BACK.
If you pass back some clientside code, you can have it close itself as well.
As for refreshing the parent.. sure, just have to open it modally, and
catch the return. There are otherways as well.... search a bit
 

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

Back
Top