-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: rathod_s
Message 8 in Discussion
HI,
My question is not how to a child window but how to close the child window on
close[X] button of parent aspx.
I didn't get RegisterStartupScriptBlock in your code.
I wrote this C# code in button click ,now how to close child window on [X]
button of parent window.
string javascript = "<script
language=javascript>window.open('BugOfBeta2.aspx','WriteMail','statusBar=yes,height=220,width=420,Left=350,top=150');</script>";
RegisterClientScriptBlock("key", javascript);
MumbaiUserGroup <[email protected]> wrote:
New Message on MumbaiUserGroup
asp.net (parent-child window) +C#
Reply
Recommend
Message 7 in Discussion
From: commander4u
On the button click event you can add a javascript to the page like this:
public void button_Click(object sender, EventArgs e)
{
string javascript = "window.Open( URL, 'windowName', windowParameters)";
RegisterStartupScriptBlock("key", javascript);
}
this will add a javascript to the page which will run when user
presses the button and page will reload after the postback. This
javascript will open a new browser window for the specified URL. to
know more about RegisterStartupScriptBlock you can search in the MSDN
On 5/13/05, rathod_s <[EMAIL PROTECTED]> wrote:
> -----------------------------------------------------------
>
> New Message on MumbaiUserGroup
>
> -----------------------------------------------------------
> From: rathod_s
> Message 1 in Discussion
>
> Hi, I have a aspx page with a asp:button. Onclick of that button i want to
> open a
window.When i close parent window (aspx) the child window should also get
closed. Note:- I need postback of the btton click since i have get some values
in session and use them when returning from child window. Thanks.
>
> -----------------------------------------------------------
>
> To stop getting this e-mail, or change how often it arrives, go to your
> E-mail Settings.
> http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
>
> Need help? If you've forgotten your password, please go to Passport Member
> Services.
> http://groups.msn.com/_passportredir.msnw?ppmprop=help
>
> For other questions or feedback, go to our Contact Us page.
> http://groups.msn.com/contact
>
> If you do not want to receive future e-mail from this MSN group, or if you
> received this message by mistake, please click the "Remove" link below. On
> the pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
> mailto:[EMAIL PROTECTED]
>
--
Thanks and Regards,
Commander
visit my blog at : http://dotnetcapsule.blogspot.com
View other groups in this category.
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]