Re: Response.Redirect Issue

Discussion in 'ASP .Net' started by Bill Romanowich, Jul 16, 2003.

  1. I'm having a similar problem with Response.Redirect(). Everything works
    fine for Windows clients but Mac clients will occasionally get into a
    situation where the page/form is submitted back to the server, the server
    sends a Response.Redirect to a new page, and the client stays on the current
    page.

    I made sure that I turned off smartNavigation (both at the page level and in
    web.config) but it's still not working.

    I tried using a Netscape browser on one of the Macs and everything worked as
    expected so this problem seems to be specific to IE on the Mac (Mac IE
    versions 5.0, 5.1.6, and 5.1.7). I should also point out that, under IE, if
    I encounter
    the problem then wait a few minutes (approx. 2 but not sure), things start
    working
    (at least for a while).

    Any pointers from anyone would be greatly appreciated. Please respond via
    email and I'll summarize to the newsgroup.

    Bill

    "Marina" <> wrote in message
    news:...
    > I didn't either, but read about it while reading the old posts and the
    > solutions.
    >
    > Glad it all worked out...
    >
    > "fadi" <> wrote in message
    > news:...
    > > Glad to see this resolved, and it sure was an educational exchange to me
    > > also. Thanks Marina for the clarification I did not know you can have
    > > SmartNavigation in web.config before
    > >
    > > "Mark Roberts" <> wrote in message
    > > news:026401c34726$abe27420$...
    > > > Marina,
    > > >
    > > > I went to the google groups area and performed the search
    > > > on keyword ASP_SMARTNAV_RDIR. And boy, did I see what
    > > > you're referring to.
    > > >
    > > > I saw the posting about a potential issue using
    > > > SamrtNavigation in the web.config file. Sure enough, mine
    > > > was set to "true".
    > > >
    > > > I changed it to "false", rebuilt the project and then
    > > > rebuilt the deployment project and now...whew...I'll have
    > > > to wait until tomorrow when the IIS Admin will reinstall
    > > > it on the web server.
    > > >
    > > > Thanks for your help and persistence. You certainly opened
    > > > my eyes on the google groups. It looks like another great
    > > > technical resource to keep in my bag of tricks when all of
    > > > my books and online Help topics can't answer my questions.
    > > >
    > > > I'll post another entry to let you know my results after
    > > > this latest change.
    > > >
    > > > Bye for now...
    > > > >-----Original Message-----
    > > > >Another suggestion is to check Web.config and
    > > > machine.config for
    > > > >'smartNavigation', to see if the default is set to true.
    > > > Perhaps it is using
    > > > >smart navigation even though you didn't specify it should
    > > > in the page
    > > > >itself.
    > > > >
    > > > >Another reason I think this is a smart navigation
    > > > problem, is that many of
    > > > >the other posts with this problem mentioned that it
    > > > worked correctly on
    > > > >localhost, but would break when they moved it to another
    > > > server.
    > > > >
    > > > >"Mark Roberts" <> wrote in message
    > > > >news:03e501c3471e$941ac840$...
    > > > >> Marina,
    > > > >>
    > > > >> Thanks for your feedback.
    > > > >>
    > > > >> I understand: it's difficult to put the issue in words,
    > > > >> but easy to demonstrate.
    > > > >>
    > > > >> I think there is possibly an IIS configuration issue,
    > > > >> perhaps even a permissions issue. But I don't know how
    > > > to
    > > > >> prove it. The IIS Admin has been patiently working with
    > > > me
    > > > >> to address the problem.
    > > > >>
    > > > >> All I know is I get a blank page when the initial
    > > > >> logon.aspx page programmatically redirects to the
    > > > >> contacts.aspx page. However, I can manually access the
    > > > >> page by typing its address.
    > > > >>
    > > > >> To answer your question, both web pages have the
    > > > >> smartNavigation property set to false.
    > > > >>
    > > > >> Prior to posting in this newsgroup, I searched google
    > > > for
    > > > >> keyword ASP_SMARTNAV_RDIR and got two hits, neither of
    > > > >> which addressed the issue I'm experiencing.
    > > > >>
    > > > >> What is google groups? I'm not familiar with this search
    > > > >> capability.
    > > > >>
    > > > >> Thanks.
    > > > >> >-----Original Message-----
    > > > >> >To be honest, I didn't understand the problem either.
    > > > >> >
    > > > >> >Are you using SmartNavigation? have you tried turning
    > > > >> that off?
    > > > >> >
    > > > >> >By doing a search on Google groups, I have found some
    > > > >> articles where people
    > > > >> >have had the same problem and smart navigation was the
    > > > >> problem. I highly
    > > > >> >recommend searching Google and Google Groups, as it is
    > > > a
    > > > >> quick way to find
    > > > >> >solutions to problems.
    > > > >> >
    > > > >> >It sounds like IIS of the server are configured
    > > > different
    > > > >> >"Mark Roberts" <> wrote in
    > > > message
    > > > >> >news:014101c34719$af7d6110$...
    > > > >> >> Thank you for your interest, Fadi.
    > > > >> >>
    > > > >> >> I'm not sure which part is unclear.
    > > > >> >>
    > > > >> >> The ASP.NET application uses code-behind to navigate
    > > > >> >> between two web pages, a logon web page (logon.aspx)
    > > > >> and a
    > > > >> >> web page to maintain contact entries (contact.aspx)
    > > > in a
    > > > >> >> SQL Server 2000 database.
    > > > >> >>
    > > > >> >> After I built the app on my machine using a localhost
    > > > >> web
    > > > >> >> server, I am now trying to deploy the app to our
    > > > >> company's
    > > > >> >> web server.
    > > > >> >>
    > > > >> >> The app correctly launches the logon.aspx web page
    > > > >> >> (default), but when the postback occurs (thru a
    > > > Submit
    > > > >> >> button) and the user is authenticated, a Redirect is
    > > > >> used
    > > > >> >> to navigate to the contact.aspx web page.
    > > > >> >>
    > > > >> >> However, all I see is a blank page. Viewing the
    > > > source I
    > > > >> >> see: <BODY><ASP_SMARTNAV_RDIR
    > > > >> >>
    > > > >>
    > > > Url="http://contact.twcglobal.com/contact.aspx"></ASP_SMART
    > > > >> >> NAV_RDIR></BODY>
    > > > >> >>
    > > > >> >> This happens if I launch the app from my desktop and
    > > > >> other
    > > > >> >> servers. But some servers I launch the app from work
    > > > >> >> correctly. The IIS Admin tells me the servers that
    > > > work
    > > > >> >> correctly are on our domain.
    > > > >> >>
    > > > >> >> I can access the contact.apsx web page directly by
    > > > >> typing
    > > > >> >> in its IP address in an IE Address text box, but the
    > > > >> page
    > > > >> >> doesn't launch when redirected from certain machines.
    > > > >> >>
    > > > >> >> I know this may be confusing. If you can be more
    > > > >> specific
    > > > >> >> about which area(s) need clarification, I will
    > > > provide
    > > > >> >> additional details.
    > > > >> >>
    > > > >> >> >-----Original Message-----
    > > > >> >> >I am not sure I understood your problem correctly.
    > > > Can
    > > > >> >> you restate the
    > > > >> >> >problem?
    > > > >> >> >
    > > > >> >> >
    > > > >> >> >"Mark Roberts" <> wrote in
    > > > >> message
    > > > >> >> >news:0e1b01c346fb$4ed0fac0$...
    > > > >> >> >> I'm encountering an issue with the
    > > > Response.Redirect
    > > > >> >> >> command.
    > > > >> >> >>
    > > > >> >> >> Here's the code I'm using:
    > > > >> >> >> .
    > > > >> >> >> .
    > > > >> >> >> .
    > > > >> >> >> Response.Clear()
    > > > >> >> >> Response.Redirect("contact.aspx")
    > > > >> >> >> .
    > > > >> >> >> .
    > > > >> >> >> .
    > > > >> >> >>
    > > > >> >> >> This code is called from an initial logon web page
    > > > >> >> >> (logon.aspx) which runs correctly.
    > > > >> >> >>
    > > > >> >> >> The logon.aspx page authenticates the user and, if
    > > > >> >> >> authorized, redirects the user to contact.aspx.
    > > > >> >> >>
    > > > >> >> >> What's even more baffling is that when these web
    > > > >> pages
    > > > >> >> are
    > > > >> >> >> called from server machines on our domain, the
    > > > second
    > > > >> >> web
    > > > >> >> >> page, contact.aspx, is rendered correctly.
    > > > >> Additionally
    > > > >> >> >> from any machine we tried (desktop or server), I
    > > > can
    > > > >> >> >> display the contact.aspx page if I call it
    > > > directly.
    > > > >> >> >>
    > > > >> >> >> From my PC the HTML I see once I 'View Source' is:
    > > > >> >> >> <BODY><ASP_SMARTNAV_RDIR
    > > > >> >> >> url="/contact.aspx"></ASP_SMARTNAV_RDIR></BODY>
    > > > >> >> >>
    > > > >> >> >> The application was installation on a SQL Server
    > > > 2000
    > > > >> >> >> server machine into the default web site (in IIS).
    > > > >> The
    > > > >> >> IIS
    > > > >> >> >> Admin then created a separate web site
    > > > (contact.com)
    > > > >> and
    > > > >> >> >> then copied the components into the contact.com
    > > > web
    > > > >> >> site.
    > > > >> >> >>
    > > > >> >> >> The IIS Admin and I have tried calling it using
    > > > the
    > > > >> IP
    > > > >> >> >> address, but got the same results.
    > > > >> >> >>
    > > > >> >> >> From the VS .NET help, I tried adding a
    > > > >> >> >> Response.BufferOutput = True before the Redirect
    > > > but
    > > > >> no
    > > > >> >> >> change.
    > > > >> >> >>
    > > > >> >> >> Any other suggestions?
    > > > >> >> >
    > > > >> >> >
    > > > >> >> >.
    > > > >> >> >
    > > > >> >
    > > > >> >
    > > > >> >.
    > > > >> >
    > > > >
    > > > >
    > > > >.
    > > > >

    > >
    > >

    >
    >
     
    Bill Romanowich, Jul 16, 2003
    #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. Charles A. Lackman
    Replies:
    2
    Views:
    8,100
    Charles A. Lackman
    Jan 11, 2006
  2. Matthew Wieder

    Response.Write and Response.Redirect

    Matthew Wieder, Jul 17, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    761
    Kevin Spencer
    Jul 17, 2003
  3. =?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,374
    Srowe1975
    Oct 15, 2008
  4. Sal
    Replies:
    1
    Views:
    1,035
  5. Ron Howard
    Replies:
    2
    Views:
    582
    Ron Howard
    Aug 11, 2004
Loading...

Share This Page