-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: commander4u
Message 7 in Discussion

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


-----------------------------------------------------------

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]

Reply via email to