launch page and redirect with LinkButton

Discussion in 'ASP .Net Web Controls' started by David Thielen, Dec 22, 2006.

  1. Hi;

    On the last page of our wizard when the Finish button is clicked we want
    both redirect that page to a new page and launch a page with the wizard
    created report. Turns out it's a piece of cake.

    aspx:
    <FinishNavigationTemplate>
    <div>
    <asp:LinkButton ID="CancelButton" runat="server"
    CausesValidation="False" CommandName="Cancel"
    Text="Cancel" CssClass="wizardButton" />
    <asp:LinkButton ID="FinishButton" runat="server"
    CommandName="MoveComplete" Text="Finish"
    CssClass="wizardButton" OnClientClick="Navigate()" />
    <asp:LinkButton ID="FinishPreviousButton" runat="server"
    CausesValidation="False"
    CommandName="MovePrevious" Text="Previous" CssClass="wizardButton" />
    </div>
    </FinishNavigationTemplate>

    and:
    <script language="javascript" type="text/javascript">
    function Navigate()
    {
    javascript:window.open("http://www.microsoft.com");
    }

    </script>

    ..aspx.cs code:
    protected void FinishButtonClick(object sender, WizardNavigationEventArgs
    wnea)
    ....
    Response.Redirect("~/report-create." +
    ExtensionConvert.ToExtension(ExtensionConvert.ToFormat(reportType.SelectedValue)) + BuildUrl());



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

    Cubicle Wars - http://www.windwardreports.com/film.htm
    David Thielen, Dec 22, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?VHJveQ==?=

    Response.redirect does not redirect from .aspx page

    =?Utf-8?B?VHJveQ==?=, Oct 18, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    5,235
    Srowe1975
    Oct 15, 2008
  2. Sathyaish
    Replies:
    3
    Views:
    3,098
    Sathyaish
    Sep 8, 2005
  3. Sathyaish

    Linkbutton does not look like a linkbutton

    Sathyaish, Sep 8, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    181
    Sathyaish
    Sep 8, 2005
  4. Sal
    Replies:
    1
    Views:
    406
  5. Hans
    Replies:
    0
    Views:
    123
Loading...

Share This Page