Opening new asp page using response.redirect

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • anuragsji

    Opening new asp page using response.redirect

    Hi,

    I have one combo box and GO button on the click of GO button page
    submitted and according to selection of one of the option from combo I
    want to redirect my page to some new asp page but at the same time in
    new window of browser.
    I could have achieved this using window.open() of javascript but then
    it will serve as pop up and clients requirement is that not to show as
    popup window due to many users blocked popups.

    Any suggestions, How can I achieve this using response.redire ct or any
    coding which is not serve as popup window.

    The work is in ASP 3.0 not in ASP.NET

    Thanks in Advance,
    Anurag

  • Hans Kesting

    #2
    Re: Opening new asp page using response.redire ct

    > Hi,[color=blue]
    >
    > I have one combo box and GO button on the click of GO button page
    > submitted and according to selection of one of the option from combo I
    > want to redirect my page to some new asp page but at the same time in
    > new window of browser.
    > I could have achieved this using window.open() of javascript but then
    > it will serve as pop up and clients requirement is that not to show as
    > popup window due to many users blocked popups.
    >
    > Any suggestions, How can I achieve this using response.redire ct or any
    > coding which is not serve as popup window.
    >
    > The work is in ASP 3.0 not in ASP.NET
    >
    > Thanks in Advance,
    > Anurag[/color]

    You can't do this with Response.Redire ct (not in asp 3.0 and not in
    asp.net 1.1 or 2.0) because the response doesn't understand "windows",
    so it can't open a new one.

    The popup-blockers usually block window.open statements that are fired
    automatically (as in an "onload" function).
    Window.open statements that are fired as a direct result of a
    user-action (onclick) are usually permitted! So you will want to open
    the new window first and then see what should be displayed there.

    Hans Kesting


    Comment

    • Karl Seguin [MVP]

      #3
      Re: Opening new asp page using response.redire ct

      well, the only solution I can think of is to use an target="_blank" on a <a
      href..

      I believe if you put it on a <form target="_blank" any submitting buttons
      will open in a new browser...

      Karl

      --
      Programming blog exploring Zig, Elixir, Go, Testing, Design and Performance




      "anuragsji" <anuragsaxenajp r@hotmail.com> wrote in message
      news:1150198757 .387508.89110@y 43g2000cwc.goog legroups.com...[color=blue]
      > Hi,
      >
      > I have one combo box and GO button on the click of GO button page
      > submitted and according to selection of one of the option from combo I
      > want to redirect my page to some new asp page but at the same time in
      > new window of browser.
      > I could have achieved this using window.open() of javascript but then
      > it will serve as pop up and clients requirement is that not to show as
      > popup window due to many users blocked popups.
      >
      > Any suggestions, How can I achieve this using response.redire ct or any
      > coding which is not serve as popup window.
      >
      > The work is in ASP 3.0 not in ASP.NET
      >
      > Thanks in Advance,
      > Anurag
      >[/color]


      Comment

      • Stuart Irving

        #4
        Re: Opening new asp page using response.redire ct

        <asp:HyperLin k ID="myLink" Target="_blank" NavigateUrl="ht tp:../blah.aspx"
        />

        "anuragsji" <anuragsaxenajp r@hotmail.com> wrote in message
        news:1150198757 .387508.89110@y 43g2000cwc.goog legroups.com...[color=blue]
        > Hi,
        >
        > I have one combo box and GO button on the click of GO button page
        > submitted and according to selection of one of the option from combo I
        > want to redirect my page to some new asp page but at the same time in
        > new window of browser.
        > I could have achieved this using window.open() of javascript but then
        > it will serve as pop up and clients requirement is that not to show as
        > popup window due to many users blocked popups.
        >
        > Any suggestions, How can I achieve this using response.redire ct or any
        > coding which is not serve as popup window.
        >
        > The work is in ASP 3.0 not in ASP.NET
        >
        > Thanks in Advance,
        > Anurag
        >[/color]


        Comment

        • Stuart Irving

          #5
          Re: Opening new asp page using response.redire ct

          oops!
          Forgot
          runat="server"

          "anuragsji" <anuragsaxenajp r@hotmail.com> wrote in message
          news:1150198757 .387508.89110@y 43g2000cwc.goog legroups.com...[color=blue]
          > Hi,
          >
          > I have one combo box and GO button on the click of GO button page
          > submitted and according to selection of one of the option from combo I
          > want to redirect my page to some new asp page but at the same time in
          > new window of browser.
          > I could have achieved this using window.open() of javascript but then
          > it will serve as pop up and clients requirement is that not to show as
          > popup window due to many users blocked popups.
          >
          > Any suggestions, How can I achieve this using response.redire ct or any
          > coding which is not serve as popup window.
          >
          > The work is in ASP 3.0 not in ASP.NET
          >
          > Thanks in Advance,
          > Anurag
          >[/color]


          Comment

          • Mike Brind

            #6
            Re: Opening new asp page using response.redire ct


            anuragsji wrote:[color=blue]
            > Hi,[/color]


            <snip>
            [color=blue]
            > The work is in ASP 3.0 not in ASP.NET[/color]


            Rather begs the question why you cross-posted it to a dotnet group,
            then, doesn't it?

            --
            Mike Brind

            Comment

            • anuragsji

              #7
              Re: Opening new asp page using response.redire ct

              Hi,
              As I remember ; This would not work in ASP but works in ASP.NET
              <asp:HyperLin k ID="myLink" Target="_blank"
              NavigateUrl="ht tp:../blah.aspx"
              />



              Stuart Irving wrote:[color=blue]
              > oops!
              > Forgot
              > runat="server"
              >
              > "anuragsji" <anuragsaxenajp r@hotmail.com> wrote in message
              > news:1150198757 .387508.89110@y 43g2000cwc.goog legroups.com...[color=green]
              > > Hi,
              > >
              > > I have one combo box and GO button on the click of GO button page
              > > submitted and according to selection of one of the option from combo I
              > > want to redirect my page to some new asp page but at the same time in
              > > new window of browser.
              > > I could have achieved this using window.open() of javascript but then
              > > it will serve as pop up and clients requirement is that not to show as
              > > popup window due to many users blocked popups.
              > >
              > > Any suggestions, How can I achieve this using response.redire ct or any
              > > coding which is not serve as popup window.
              > >
              > > The work is in ASP 3.0 not in ASP.NET
              > >
              > > Thanks in Advance,
              > > Anurag
              > >[/color][/color]

              Comment

              • anuragsji

                #8
                Re: Opening new asp page using response.redire ct

                I thought that may be .NET group know anything about the same thats why
                I posted on that.
                I also used target="_blank" in <Form...> tag but doing so it have an
                effect on all options on the combo box not only for 1 option. I need
                only for single option which if selected then redirect to new window.

                Thanks to all,
                Anurag


                anuragsji wrote:[color=blue]
                > Hi,
                > As I remember ; This would not work in ASP but works in ASP.NET
                > <asp:HyperLin k ID="myLink" Target="_blank"
                > NavigateUrl="ht tp:../blah.aspx"
                > />
                >
                >
                >
                > Stuart Irving wrote:[color=green]
                > > oops!
                > > Forgot
                > > runat="server"
                > >
                > > "anuragsji" <anuragsaxenajp r@hotmail.com> wrote in message
                > > news:1150198757 .387508.89110@y 43g2000cwc.goog legroups.com...[color=darkred]
                > > > Hi,
                > > >
                > > > I have one combo box and GO button on the click of GO button page
                > > > submitted and according to selection of one of the option from combo I
                > > > want to redirect my page to some new asp page but at the same time in
                > > > new window of browser.
                > > > I could have achieved this using window.open() of javascript but then
                > > > it will serve as pop up and clients requirement is that not to show as
                > > > popup window due to many users blocked popups.
                > > >
                > > > Any suggestions, How can I achieve this using response.redire ct or any
                > > > coding which is not serve as popup window.
                > > >
                > > > The work is in ASP 3.0 not in ASP.NET
                > > >
                > > > Thanks in Advance,
                > > > Anurag
                > > >[/color][/color][/color]

                Comment

                • Luke Zhang [MSFT]

                  #9
                  Re: Opening new asp page using response.redire ct

                  Hello Anurag,

                  How about change the form target dynamically, for example, add a button on
                  the form and use following code in its click event:


                  if ( document.body.a ll("DropDownBox ").selectedInde x==2)
                  {
                  MyForm.target ="_blank";
                  }

                  MyForm.submit() ;


                  Regards,

                  Luke Zhang
                  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.)

                  Comment

                  • anuragsji

                    #10
                    Re: Opening new asp page using response.redire ct

                    Many Thanks to Luke Zhang and to all who helped me on the same.I used
                    document.body.a ll("DropDownBox ").SelectedInde x==2........... ......and
                    my work is done
                    Thanks a lot
                    Anurag


                    Luke Zhang [MSFT] wrote:[color=blue]
                    > Hello Anurag,
                    >
                    > How about change the form target dynamically, for example, add a button on
                    > the form and use following code in its click event:
                    >
                    >
                    > if ( document.body.a ll("DropDownBox ").selectedInde x==2)
                    > {
                    > MyForm.target ="_blank";
                    > }
                    >
                    > MyForm.submit() ;
                    >
                    >
                    > Regards,
                    >
                    > Luke Zhang
                    > 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.)[/color]

                    Comment

                    Working...