Re: Issue with double redirect

Tech-Archive recommends: Fix windows errors by optimizing your registry



I have found some info more regarding this issue.

The external page the asp code is redirecting to is protected by NTLM,
so the first time, the user gets prompted his login/password, and the
redirect fails (the URL is appended to the current site).

The second time, the redirect works (as the user is already
authenticated).

Is there a solution to have a proper redirect to an external site/page
protected by NTLM works?

Thanks,
Seb



Seb wrote:
Thanks,

the example was poorly constructed, but our pages have the proper
encoding and URLs as parameters, so it appears to be an issue with the
redirect itself. The same happens when the URL is actually hard-coded
within our redirect page.

David wrote:
A problem with your redirect string as well is that you are missing a colon
: should be http://

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available


"marss" <marss.ua@xxxxxxxxx> wrote in message
news:1180000956.754523.289810@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Seb wrote:
Hi,

We have a page in VB.NET redirecting to an external site.

Example:
http://mysite.com/redirect.aspx?url=http//externalsite.com/their-page.asp

If you want to pass a string containing slashes in the url as query
parameter you have to encode it.
Use HttpUtility.UrlEncode and HttpUtility.UrlDecode.
Regards,
Mykola
http://marss.co.ua


.



Relevant Pages

  • Re: IsPostBack
    ... > loads the first time, I have code that executes once. ... > BUT I have code I want to execute ONLY the first time the page is called. ... A redirect involves doing a GET for the new page you specify ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Error on Startup (event 7022 for netevent.dll)
    ... | The first time I ran it, I didn't redirect the output. ... |>Either case you probably can't run the command and pipe to a text file ... | I just created a new full backup set yesterday. ...
    (microsoft.public.windows.server.general)
  • Re: How to redirect after form submit?
    ... only times the user will see the form are a) if this is the first time or b) if there was some error in processing the values supplied to the form. ... I'm still having trouble getting the form action working: ... Should I put the form action code in just above the redirect? ...
    (comp.lang.php)
  • session variable problem
    ... I’m facing some problem can u solve it. ... I’m giving user Id and password in and submit it to page ... before redirecting to the same page, but in first time I do not received the ... value of session variable when I redirect it, ...
    (microsoft.public.inetserver.asp.general)
  • session varible problem
    ... I’m facing some problem can u solve it. ... I’m giving user Id and password in and submit it to page ... before redirecting to the same page, but in first time I do not received the ... value of session variable when I redirect it, ...
    (microsoft.public.inetserver.asp.general)