Ask a Question related to ASP, Design and Development.

  1. #1

    Default response.redirect

    I use Respose.Redirect quite a bit but on one of my pages
    it has an odd behavior. Any time I use it on this page it
    will come up in a new Window. I didn't even think this
    was an option and can't find how to turn it on or off.

    Using Response.Redirect("Newpage.aspx");

    to add to this it has another odd behavior.
    Start on "Page1"
    redirect to "Page2"
    Redirect back to "Page1" at this point I get a new window
    Using the new window now the redirects work as expected
    replaceing the previous page (On the new window), and
    even repeatedly using the same redirect it will not bring
    up a new page.
    If I go Back to the original window, hitting the redirect
    button now affects the new window, not the original

    Anyone have any ideas????
    Dwayne Guest

  2. Similar Questions and Discussions

    1. asp response.redirect
      > FORM ACTION="Goto_yahoo" must be Goto_yahoo.asp
    2. Response.Flush / Response.Redirect
      Hi, I've had a good google and can't find anything already on this so : I'm currently trying to have a 'Page Loading' page on a site. The way...
    3. response.redirect?
      Is it possible to set a interval for response.redirect? SOmething you see on different forums. I've written a page where the people can change there...
    4. Response.Write and Response.Redirect
      On my Page_Load event, i need to do some validation and then either let them proceed, or display a error message and boot them back to the previous...
    5. Redirect to New Browser Window like Response.Redirect
      That worked just fine for me as long as you put that open statement on one line rather than 2. "michel" <michely3k@yahoo.com> wrote in...
  3. #2

    Default Re: response.redirect


    Checked for BASE TARGET its not on either of the pages I'm redirecting
    to.

    Unfortunatly the pages are on a secured website so I can't give access
    to them :(


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Dwayne Goerges Guest

  4. #3

    Default Re: response.redirect

    Found it I had target="_blank" in the body tag

    Thanks Dwayne
    >-----Original Message-----
    >Any chance there is a <BASE TARGET tag in the page? Or
    maybe you could show
    >us the page in question so we could see the symptom
    ourselves?
    >
    >
    >
    >
    >
    >> I use Respose.Redirect quite a bit but on one of my
    pages
    >> it has an odd behavior. Any time I use it on this page
    it
    >> will come up in a new Window. I didn't even think this
    >> was an option and can't find how to turn it on or off.
    >>
    >> Using Response.Redirect("Newpage.aspx");
    >>
    >> to add to this it has another odd behavior.
    >> Start on "Page1"
    >> redirect to "Page2"
    >> Redirect back to "Page1" at this point I get a new
    window
    >> Using the new window now the redirects work as expected
    >> replaceing the previous page (On the new window), and
    >> even repeatedly using the same redirect it will not
    bring
    >> up a new page.
    >> If I go Back to the original window, hitting the
    redirect
    >> button now affects the new window, not the original
    >>
    >> Anyone have any ideas????
    >
    >
    >.
    >
    dwayne Guest

  5. #4

    Default Response.Redirect

    Hi,

    I have a Popup window where a user inputs soem data.

    On successfully entering this data I redirect the user to
    a page in the same popup indicating that the form has
    submitted successfully.

    I want to resize the page that I redirect the user to.

    Is this possible in ASP?

    Thanks,
    C
    C Guest

  6. #5

    Default Re: Response.Redirect

    No, it's not possible with ASP, becuase it doesn't know what a "window" is.
    You can only do something like that using client-side code such as
    Javascript. Try a group like .scripting.jscript.

    Ray at home

    "C" <anonymous@discussions.microsoft.com> wrote in message
    news:0d3601c3930a$cd116090$a301280a@phx.gbl...
    > Hi,
    >
    > I have a Popup window where a user inputs soem data.
    >
    > On successfully entering this data I redirect the user to
    > a page in the same popup indicating that the form has
    > submitted successfully.
    >
    > I want to resize the page that I redirect the user to.
    >
    > Is this possible in ASP?
    >
    > Thanks,
    > C

    Ray at Guest

  7. #6

    Default Response.redirect

    I'm not getting the results I want when I use
    Response.Redirct in a ASP page.

    I enter this line of code in a asp page from domain1.com.


    Response.Redirect "http://www.domain2.com/VDIR2/table.asp"
    & "?PubID=" & PubID & "&PubName=" & PubName

    The query string is data to open a DB. the page displays
    but the DB does not open.

    That's because when it redirects I notice in the address
    bar of IE that it looks like this

    [url]http://www.domain1.com/VDIR1/table.asp?[/url]
    PubID=100&PubName=thename

    I told it to redirect to domain2 but I see domain1 in the
    address bar.

    If I type out the URL to domain2 with all the params
    everything works fine, so the problem is with how I am
    redirecting there.

    The redirect above is inside an IF statement which says if
    the PubID is less then 100 I go to the table.asp page on
    domain2.com else I stay with table.asp on domain1.com

    Any ideas

    PAul

    Paul Guest

  8. #7

    Default Re: Response.redirect

    Gazing into my crystal ball I observed "Paul"
    <anonymous@discussions.microsoft.com> writing in news:06ce01c39447$98c015a0
    $a101280a@phx.gbl:
    > I'm not getting the results I want when I use
    > Response.Redirct in a ASP page.
    >
    > I enter this line of code in a asp page from domain1.com.
    >
    >
    > Response.Redirect "http://www.domain2.com/VDIR2/table.asp"
    > & "?PubID=" & PubID & "&PubName=" & PubName
    >
    > The query string is data to open a DB. the page displays
    > but the DB does not open.
    >
    > That's because when it redirects I notice in the address
    > bar of IE that it looks like this
    >
    > [url]http://www.domain1.com/VDIR1/table.asp?[/url]
    > PubID=100&PubName=thename
    >
    > I told it to redirect to domain2 but I see domain1 in the
    > address bar.
    >
    > If I type out the URL to domain2 with all the params
    > everything works fine, so the problem is with how I am
    > redirecting there.
    >
    > The redirect above is inside an IF statement which says if
    > the PubID is less then 100 I go to the table.asp page on
    > domain2.com else I stay with table.asp on domain1.com
    >
    > Any ideas
    >
    > PAul
    >
    What happens if you response.write in the IF statement?

    if pubid < 100 then
    response.write "I am going to domain2"
    else
    response.write "I staying right here"
    end if

    Is Pubid really a number, or is it a string? If it's a string, convert it
    to a number, and then test it.

    --
    Adrienne Boswell
    Please respond to the group so others can share
    [url]http://www.arbpen.com[/url]
    Adrienne Guest

  9. #8

    Default Re: Response.redirect

    If I do the test you suggested it works as expected. and
    yes PubId is a number.

    The If statement works correctly, if pubID > 100 I stay on
    my IIS server, if PubID < 100 I redirect to another IIS
    server someplace else. the problem occurs when PubId < 100
    and I redirect using this line of code:

    Response.Redirect "http://www.domain2.com/VDIR2/table.asp"
    & "?PubID=" & PubID & "&PubName=" & PubName

    When PubId < 100 I see In the IE address bar the redirect
    above with the acception that [url]www.domain2.com[/url] is replaced
    with [url]www.domain1.com[/url].

    domain1 is my domain, It points to my IIS server, domain2
    is somebody elses IIS server that I need to redirect to.

    When PubID < 100 and things fail, I merely need to edit
    the address bar URL by changing domain1.com to domain2.com
    and hit return. Then I get what I want.

    So some how even though I redirect to domain2 something is
    replacing it with domain1.






    >-----Original Message-----
    >Gazing into my crystal ball I observed "Paul"
    ><anonymous@discussions.microsoft.com> writing in
    news:06ce01c39447$98c015a0
    >$a101280a@phx.gbl:
    >
    >> I'm not getting the results I want when I use
    >> Response.Redirct in a ASP page.
    >>
    >> I enter this line of code in a asp page from
    domain1.com.
    >>
    >>
    >>
    Response.Redirect "http://www.domain2.com/VDIR2/table.asp"
    >> & "?PubID=" & PubID & "&PubName=" & PubName
    >>
    >> The query string is data to open a DB. the page
    displays
    >> but the DB does not open.
    >>
    >> That's because when it redirects I notice in the
    address
    >> bar of IE that it looks like this
    >>
    >> [url]http://www.domain1.com/VDIR1/table.asp?[/url]
    >> PubID=100&PubName=thename
    >>
    >> I told it to redirect to domain2 but I see domain1 in
    the
    >> address bar.
    >>
    >> If I type out the URL to domain2 with all the params
    >> everything works fine, so the problem is with how I am
    >> redirecting there.
    >>
    >> The redirect above is inside an IF statement which says
    if
    >> the PubID is less then 100 I go to the table.asp page
    on
    >> domain2.com else I stay with table.asp on domain1.com
    >>
    >> Any ideas
    >>
    >> PAul
    >>
    >
    >What happens if you response.write in the IF statement?
    >
    >if pubid < 100 then
    >response.write "I am going to domain2"
    >else
    >response.write "I staying right here"
    >end if
    >
    >Is Pubid really a number, or is it a string? If it's a
    string, convert it
    >to a number, and then test it.
    >
    >--
    >Adrienne Boswell
    >Please respond to the group so others can share
    >[url]http://www.arbpen.com[/url]
    >.
    >
    Paul Guest

  10. #9

    Default Re: Response.redirect

    I just figured it out.

    You need to do a Response.Clear before you redirect to
    another server.

    Thanks anyway
    >-----Original Message-----
    >If I do the test you suggested it works as expected. and
    >yes PubId is a number.
    >
    >The If statement works correctly, if pubID > 100 I stay
    on
    >my IIS server, if PubID < 100 I redirect to another IIS
    >server someplace else. the problem occurs when PubId <
    100
    >and I redirect using this line of code:
    >
    >Response.Redirect "http://www.domain2.com/VDIR2/table.asp"
    >& "?PubID=" & PubID & "&PubName=" & PubName
    >
    >When PubId < 100 I see In the IE address bar the redirect
    >above with the acception that [url]www.domain2.com[/url] is replaced
    >with [url]www.domain1.com[/url].
    >
    >domain1 is my domain, It points to my IIS server, domain2
    >is somebody elses IIS server that I need to redirect to.
    >
    >When PubID < 100 and things fail, I merely need to edit
    >the address bar URL by changing domain1.com to
    domain2.com
    >and hit return. Then I get what I want.
    >
    >So some how even though I redirect to domain2 something
    is
    >replacing it with domain1.
    >
    >
    >
    >
    >
    >
    >
    >>-----Original Message-----
    >>Gazing into my crystal ball I observed "Paul"
    >><anonymous@discussions.microsoft.com> writing in
    >news:06ce01c39447$98c015a0
    >>$a101280a@phx.gbl:
    >>
    >>> I'm not getting the results I want when I use
    >>> Response.Redirct in a ASP page.
    >>>
    >>> I enter this line of code in a asp page from
    >domain1.com.
    >>>
    >>>
    >>>
    >Response.Redirect "http://www.domain2.com/VDIR2/table.asp"
    >>> & "?PubID=" & PubID & "&PubName=" & PubName
    >>>
    >>> The query string is data to open a DB. the page
    >displays
    >>> but the DB does not open.
    >>>
    >>> That's because when it redirects I notice in the
    >address
    >>> bar of IE that it looks like this
    >>>
    >>> [url]http://www.domain1.com/VDIR1/table.asp?[/url]
    >>> PubID=100&PubName=thename
    >>>
    >>> I told it to redirect to domain2 but I see domain1 in
    >the
    >>> address bar.
    >>>
    >>> If I type out the URL to domain2 with all the params
    >>> everything works fine, so the problem is with how I am
    >>> redirecting there.
    >>>
    >>> The redirect above is inside an IF statement which
    says
    >if
    >>> the PubID is less then 100 I go to the table.asp page
    >on
    >>> domain2.com else I stay with table.asp on domain1.com
    >>>
    >>> Any ideas
    >>>
    >>> PAul
    >>>
    >>
    >>What happens if you response.write in the IF statement?
    >>
    >>if pubid < 100 then
    >>response.write "I am going to domain2"
    >>else
    >>response.write "I staying right here"
    >>end if
    >>
    >>Is Pubid really a number, or is it a string? If it's a
    >string, convert it
    >>to a number, and then test it.
    >>
    >>--
    >>Adrienne Boswell
    >>Please respond to the group so others can share
    >>[url]http://www.arbpen.com[/url]
    >>.
    >>
    >.
    >
    Paul Guest

  11. #10

    Default response.redirect

    hello

    i have problem with response.redirect method, namely i have default page
    home.aspx where is html table :

    <%@ Page Language="VB" %>
    <script runat="server">

    ' Insert page code here
    '

    </script>
    <%@ Register TagPrefix="eCommerce" TagName="Menu" Src="Menu.ascx" %>
    <html>
    <head>
    <title>zamówienia Wf-Mag</title>
    <link href="stylee.css" rel="stylesheet" />
    </head>
    <body>
    <form runat="server">
    <table width="100%" border="0">
    <tbody>
    <tr valign="top">
    <td colspan="2">
    <!-- HEADER -->
    <div style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px;
    PADDING-BOTTOM: 5px; COLOR: white; PADDING-TOP: 5px; BACKGROUND-COLOR:
    #990000"><span style="FONT-WEIGHT: bold; FONT-SIZE:
    32pt">zamowienia.intak.pl</span>
    </div>
    </td>
    </tr>
    <tr valign="top">
    <td width="20%">
    <!-- MENU -->
    <ECOMMERCE:MENU runat="server" />
    </td>
    <td width="80%">
    <!-- CONTENT -->retreter</td>
    </tr>
    </tbody>
    </table>
    </form>
    </body>
    </html>

    and everything is ok but when i call response.redirect from menu.ascx new
    page is opening in browser, but not in third table cell.... what should i do
    to open new page in third cell ???

    thanks

    Patrick


    ven Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139