Hi, What i want is when user click a button which is a server control, first the database is updated, then a popup opens, which displays the updated data from db. But I don't wan't the parent page to be refreshed. To be more exact, when the button is clicked,
I want both some server and client side processing, to responde the postback event for the server , I only need to update db, the parent page has to be still, then a popup opend to reflect the updated data, when the popup closed, the parent page MUST NOT be
refreshed. Any solution? TIA, James
How much data? if your button had a client-side click handler you could open up the popup page with the data needing to be saved in the querystring. The popup page can do the save, show the saved data, and offer a close button. Does that get it? ...the parent
page is completely still. The problem is the querystring severely limits the length of data you can send that way. If you allow the button on the parent page to postback that first time then you can save alot more data. hth
Hi hth, Great idea! Thanks! I think I can have a try with the querystring. My data is some information on updating shopping cart, not too much. Anyway, I still want to know if there is a way to just do data processing, not call page_load to keep the page still,
when a button is clicked. I believe many developers have such a requirement. Regards, James
Try adding this code on Page_Load: button1.Attributes.Add("onclick", "window.open(...); return false;") The 'return false;' statement will cancel the server-side click, yet opens the popup window through using the 'window.open(...);' statement. Update the database
from within the newly opened page.
jamli
Member
165 Points
33 Posts
It really beats me
Dec 04, 2003 03:06 AM|LINK
billupton.co...
Participant
1835 Points
365 Posts
Re: It really beats me
Dec 04, 2003 03:46 AM|LINK
jamli
Member
165 Points
33 Posts
Re: It really beats me
Dec 04, 2003 05:12 AM|LINK
billupton.co...
Participant
1835 Points
365 Posts
Re: It really beats me
Dec 04, 2003 01:26 PM|LINK
songokou
Member
10 Points
2 Posts
Re: It really beats me
Dec 05, 2003 01:02 AM|LINK
Accenture CIO-SD Makati City - MSE Bldg., Ayala Avenue 1200 Philippines
Direct Dial: +63 2 841 0111 x4605
VPN and Octel: 632/4605
email: randell.l.rivera@accenture.com
Expect the worst and you'll expect the best!