if we dont want to give the index number in window.opener.document.forms[Indexnumber].submit()
We can do this in different method opener.location.href = opener.location self.close() Thanks --- In [email protected], "Peter Brunone" <[EMAIL PROTECTED]> wrote: > > I think you mean "self.close()" :-D > > Also, there is no submit() method on the document object (at least there > shouldn't be). To submit the form, you'd want to say > > window.opener.document.forms[0].submit() > > This assumes that you have only one form in the parent page, which is > usually a valid assumption; if not, you'll have to change the zero to the > correct index of your form in the page. > > Cheers, > > Peter > > On 11/30/06, kiran_vengala2001 <[EMAIL PROTECTED]> wrote: > > > > Once updating finish,use Page.RegisterOnSubmit(getType > > (),"CloseSciprt","<script>slef.close()</script>") > > as well as you want to post the Opener widow too user javascript > > window.opener.document.submit() > > > > Thanks > > > > --- In [email protected] <AspNet2%40yahoogroups.com>, > > rherrmann05@ 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] >

