Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: Response.Redirect Issue

Reply
Thread Tools

Re: Response.Redirect Issue

 
 
Bill Romanowich
Guest
Posts: n/a
 
      07-16-2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I didn't either, but read about it while reading the old posts and the
> solutions.
>
> Glad it all worked out...
>
> "fadi" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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" <(E-Mail Removed)> wrote in message
> > news:026401c34726$abe27420$(E-Mail Removed)...
> > > 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" <(E-Mail Removed)> wrote in message
> > > >news:03e501c3471e$941ac840$(E-Mail Removed)...
> > > >> 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" <(E-Mail Removed)> wrote in
> > > message
> > > >> >news:014101c34719$af7d6110$(E-Mail Removed)...
> > > >> >> 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" <(E-Mail Removed)> wrote in
> > > >> message
> > > >> >> >news:0e1b01c346fb$4ed0fac0$(E-Mail Removed)...
> > > >> >> >> 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?
> > > >> >> >
> > > >> >> >
> > > >> >> >.
> > > >> >> >
> > > >> >
> > > >> >
> > > >> >.
> > > >> >
> > > >
> > > >
> > > >.
> > > >

> >
> >

>
>




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it a hardware issue or a config issue or something else Scooty Cisco 0 06-14-2008 04:02 PM
Data Storage Issue (Basic Issue) Srini Java 11 06-01-2008 01:17 AM
Service Pack 2: login issue's and power management issue's ?!? Skybuck Flying Windows 64bit 0 04-07-2007 03:12 PM
inspiron 8200 video issue and hd issue the pez lover Computer Support 1 02-05-2007 02:44 AM
Major ActiveX Domain issue. NOT LOCAL PC ISSUE joe.valentine@gmail.com Computer Support 8 02-06-2006 09:03 PM



Advertisments