Hi Bob,
Each of these can be accomplished with a line of Javascript. To reload
the parent window:
window.opener.forms[0].submit();
...and then to close the current (child) window:
window.close();
Of course these have to be done from the child window, but that's no
problem; you can use RegisterStartupScript, or even just a Literal (or if
you want to get really ugly, just Response.Write the JS out) after the child
form posts back.
Cheers,
Peter
On 9/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I have a popup window that I call from my asp.net page. The popup window
> page displays a gridview control with a list of items. I have a linkbutton
> control on each row of the gridview. When the user clicks the linkbutton, I
> do some updating of a SQL table. This all works fine. But I want to do 2
> more things when the user clicks the linkbutton:
>
> 1. I want to close the popup window.
>
> 2. I want to force a postback of my main page. I need this because I want
> to display the result of the database change I made using the popup window.
>
> Can anyone help?
>
> Thanks,
> Bob
>
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNet2/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/AspNet2/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/