Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
rtutus
Aged Yak Warrior
522 Posts |
Posted - 2007-08-17 : 10:25:12
|
Hi,I have a page default.aspxI have a link on default that pops up another page : Edit.aspxI want when I close Edit.aspx either through client code: window.close or some other server side to close the page (i don t know any), any way I want when I go back to have the focus on the page default.aspx , I want the page to refresh so the new data that I edited on Edit.aspx can show up according to the changes the user just made,I deid the pop up page, and the editing, but I don t know how to refresh the calling page: default.aspx automatically.Thanks for showing me how if there is any method, thanks a lot.__________________ |
|
rammohan
Posting Yak Master
212 Posts |
Posted - 2007-08-20 : 03:29:48
|
Hi, in order to post the values from child page to parent one, you can go for query string method: in parent form page_load{btnParent.OnClientClick = "javascript:textPicker('document.Form1." + txtParent.ClientID.ToString() + "')";//btnParent is a button and txtParent is a TextBox}script in parent page is :<script language="javascript" type="text/javascript"> function textPicker(strTxtRef) { window.open('./Child.aspx?field=' + strTxtRef +'','childPopup','titlebar=no,left=470,top=100,width=300,height=250,resizable=no'); } </script>in child from write the following code in any user defind method:Response.Write("<script>window.opener." + Request.QueryString["field"].ToString() + ".value='" +_text + "';window.close();</script>");here _text is a varible which u r goind to send it back.One can never consent to creep,when one feels an impulse to soarRAMMOHAN |
|
|
|
|
|
|
|