It really beats mehttp://forums.asp.net/t/409681.aspx/1?It+really+beats+meFri, 05 Dec 2003 01:15:32 -0500409681409681http://forums.asp.net/p/409681/409681.aspx/1?It+really+beats+meIt really beats me 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 2003-12-04T03:06:20-05:00409710http://forums.asp.net/p/409681/409710.aspx/1?Re+It+really+beats+meRe: It really beats me 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 2003-12-04T03:46:42-05:00409744http://forums.asp.net/p/409681/409744.aspx/1?Re+It+really+beats+meRe: It really beats me 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 2003-12-04T05:12:05-05:00410017http://forums.asp.net/p/409681/410017.aspx/1?Re+It+really+beats+meRe: It really beats me Check out &quot;Remote Scripting&quot; or <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/html/scripting11122001.asp"> Web Services HERE</a> 2003-12-04T13:26:01-05:00410707http://forums.asp.net/p/409681/410707.aspx/1?Re+It+really+beats+meRe: It really beats me Try adding this code on Page_Load: button1.Attributes.Add(&quot;onclick&quot;, &quot;window.open(...); return false;&quot;) 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. 2003-12-05T01:02:59-05:00