Home All Groups Group Topic Archive Search About

Wizard.FinishButtonClick - launch browser AND redirect

Author
14 Dec 2006 6:14 AM
David Thielen
Hi;

In my Wizard.FinishButtonClick method I need to have the following happen:
1) A second browser is launched to a specific url.
2) The browser my code is in redirects to a different page.

Any idea how to do this?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm

Author
14 Dec 2006 10:31 AM
Walter Wang [MSFT]
Hi Dave,

You can use javascript to open the different page in a new window:

    protected void Wizard1_FinishButtonClick(object sender,
WizardNavigationEventArgs e)
    {
        ClientScript.RegisterStartupScript(this.GetType(), "open2",
"window.open('Default2.aspx', '_blank')", true);
    }


Sincerely,
Walter Wang (waw***@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Author
19 Dec 2006 12:51 AM
David Thielen
Hi;

My popup blocker stops this from working. I can turn off my blocker - but
our users will have this on.

So... any other ideas on how to do this? In a perfect world when they click
on the Finish button in a wizard it pops up this window AND takes the
existing window to a new url.

But the pop'ed up window is the critical one. That one must be displayed as
it is the result of having gone through the wizard. At present when users
click done on the wizard we just go to that page - but they are then out of
our portal and find that very confusing.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm




Show quoteHide quote
"Walter Wang [MSFT]" wrote:

> Hi Dave,
>
> You can use javascript to open the different page in a new window:
>
>     protected void Wizard1_FinishButtonClick(object sender,
> WizardNavigationEventArgs e)
>     {
>         ClientScript.RegisterStartupScript(this.GetType(), "open2",
> "window.open('Default2.aspx', '_blank')", true);
>     }
>
>
> Sincerely,
> Walter Wang (waw***@online.microsoft.com, remove 'online.')
> Microsoft Online Community Support
>
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications. If you are using Outlook Express, please make sure you clear the
> check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
> promptly.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscriptions/support/default.aspx.
> ==================================================
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
Author
19 Dec 2006 6:14 AM
Walter Wang [MSFT]
Dave,

It's not possible bypass the popup blocker. You can detect if a popup block
is present, then use one of following options:

1) Prompt the user that he/she needs to turn off the popup blocker since
it's important for your site

2) Show the user a direct link to open the url in a new window; normally a
popup blocker only blocks a window opened by script.

For more information, please refer to following document:

#Detect a popup blocker using Javascript - Article 3
http://www.visitor-stats.com/articles/detect-popup-blocker.php



Regards,
Walter Wang (waw***@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
Author
20 Dec 2006 4:27 PM
David Thielen
Yuck - ok - thanks

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm




Show quoteHide quote
"Walter Wang [MSFT]" wrote:

> Dave,
>
> It's not possible bypass the popup blocker. You can detect if a popup block
> is present, then use one of following options:
>
> 1) Prompt the user that he/she needs to turn off the popup blocker since
> it's important for your site
>
> 2) Show the user a direct link to open the url in a new window; normally a
> popup blocker only blocks a window opened by script.
>
> For more information, please refer to following document:
>
> #Detect a popup blocker using Javascript - Article 3
> http://www.visitor-stats.com/articles/detect-popup-blocker.php
>
>
>
> Regards,
> Walter Wang (waw***@online.microsoft.com, remove 'online.')
> Microsoft Online Community Support
>
> ==================================================
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
>