I have written an HttpHandler which I invoke through an ashx page.
The HttpHandler does various things to process the request, then it is supposed to redirect to a confirmation page.
Everything up to the redirect works fine, but I can't get the redirect to work.
If I do a ...
context.Response.Write("Hello World");
.... the HttpHandler works great and the browser loads the text fine,
but if I change it to ...
context.Response.Redirect("/filepath/file.htm");
.... the browser just spins and spins like it is trying to load something but nothing every does.
The redirect URL does show up in the status bar, and the URL is valid, but nothing ever loads!
I have tried Server.Transfer and Server.Execute and they exhibit the same behavior. Does anybody know what might be going on? 3 7852
Stupid question here, have you tried loading file.htm manually ?
--
OHM ( Terry Burns )
. . . One-Handed-Man . . .
Time flies when you don't know what you're doing
"Jed" <Je*@discussions.microsoft.com> wrote in message
news:BD**********************************@microsof t.com... I have written an HttpHandler which I invoke through an ashx page.
The HttpHandler does various things to process the request, then it is
supposed to redirect to a confirmation page. Everything up to the redirect works fine, but I can't get the redirect to
work. If I do a ... context.Response.Write("Hello World"); ... the HttpHandler works great and the browser loads the text fine, but if I change it to ... context.Response.Redirect("/filepath/file.htm"); ... the browser just spins and spins like it is trying to load something
but nothing every does. The redirect URL does show up in the status bar, and the URL is valid, but
nothing ever loads! I have tried Server.Transfer and Server.Execute and they exhibit the same
behavior. Does anybody know what might be going on?
Check this out... http://pubs.logicalexpressions.com/P...cle.asp?ID=214
....as it may be that the use of the HttpHandler may be where the
conflict is occurring with the way the Response.Redirect actually
functions when it imputes metadata into the header of the response.
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
"Jed" <Je*@discussions.microsoft.com> wrote in message
news:BD**********************************@microsof t.com... I have written an HttpHandler which I invoke through an ashx page.
The HttpHandler does various things to process the request, then it is
supposed to redirect to a confirmation page. Everything up to the redirect works fine, but I can't get the redirect to
work. If I do a ... context.Response.Write("Hello World"); ... the HttpHandler works great and the browser loads the text fine, but if I change it to ... context.Response.Redirect("/filepath/file.htm"); ... the browser just spins and spins like it is trying to load something but
nothing every does. The redirect URL does show up in the status bar, and the URL is valid, but
nothing ever loads! I have tried Server.Transfer and Server.Execute and they exhibit the same
behavior. Does anybody know what might be going on?
Yep. The page does load manually.
One thing I left out, which has now become relevant is that I am initiating the call to the HttpHandler through a post from an acrobat pdf file.
I tried posting to the handler from an html form and the redirect works fine. So I guess it has something to do with the post from the pdf, though I have no clue why it would make a difference.
I tried declaring the Response.ContentType in the HttpHandler to make sure there wasn't any confusion about the Response there, but that didn't work.
It's still weird that Response.Write works but redirect doesn't. And also weird that I can't use Server.Execute with Response.Write to output the confirmation page. No attempt to get to that file from the HttpHandler works if the post if from a pdf.
"One Handed Man ( OHM - Terry Burns )" wrote: Stupid question here, have you tried loading file.htm manually ?
--
OHM ( Terry Burns ) . . . One-Handed-Man . . .
Time flies when you don't know what you're doing
"Jed" <Je*@discussions.microsoft.com> wrote in message news:BD**********************************@microsof t.com... I have written an HttpHandler which I invoke through an ashx page.
The HttpHandler does various things to process the request, then it is supposed to redirect to a confirmation page. Everything up to the redirect works fine, but I can't get the redirect to
work. If I do a ... context.Response.Write("Hello World"); ... the HttpHandler works great and the browser loads the text fine, but if I change it to ... context.Response.Redirect("/filepath/file.htm"); ... the browser just spins and spins like it is trying to load something
but nothing every does. The redirect URL does show up in the status bar, and the URL is valid, but
nothing ever loads! I have tried Server.Transfer and Server.Execute and they exhibit the same
behavior. Does anybody know what might be going on? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dale Ragan via .NET 247 |
last post by:
(Type your message here)
--------------------------------
From: Dale Ragan
I am running into a problem with an HttpHandler that I have builtto show a progress image on the page getting...
|
by: Sam |
last post by:
My problem is that when I am trying to use
Server.Execute("Somehandler.ashx") I am getting HttpException.
System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler,
TextWriter writer,...
|
by: bryan |
last post by:
I've got a custom HttpHandler to process all requests for a given
extension. It gets invoked OK, but if I try to do a Server.Transfer I
get an HttpException. A Response.Redirect works, but I really...
|
by: MilanB |
last post by:
Hello,
I created HttpHandler to redirect root Default.aspx. But I don't know how to
create path, that will redirect just web root Default.aspx. I tried following
line, but it redirects all...
|
by: Mike Lowery |
last post by:
I've written an HTTPHandler based on the article at
http://msdn2.microsoft.com/en-us/library/ms228090.aspx. It's working, but I
have one problem. What I'm trying to do is redirect the browser...
|
by: hawkeye parker |
last post by:
Hello,
IIS 6.0 server, .Net 2.0. I have a file download architecture which
redirects
file download requests to a custom server-side HttpHandler. The
handler gets a stream over the file and...
|
by: Mike |
last post by:
Hi,
I have a problem of page redirection. Basically, the user has to connect to
the local web server, but some pages need to be served by a remote server,
because it contains some confidential...
|
by: zlf |
last post by:
Hello,
I try to use a custom HttpHandler to add something to session, then display
the original page.
public void ProcessRequest(HttpContext context)
{
context.Session = "test";
}
But, a...
|
by: Author |
last post by:
I followed the example at http://support.microsoft.com/kb/308001/EN-US/
and created my own HttpHandler.
Here is the code:
using System.Web;
namespace MyNameSpace
{
public class...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: nia12 |
last post by:
Hi there,
I am very new to Access so apologies if any of this is obvious/not clear.
I am creating a data collection tool for health care employees to complete. It consists of a number of...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
|
by: GKJR |
last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
| |