RE: Url Redirection
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng [MSFT])
- Date: Mon, 28 Jul 2008 04:33:03 GMT
Hi Nick,
As Marc has suggested, you can try using UrlEncode since that will make
sure the output characters are valid and safe one in http url string.
Generally if you have multiple querystring parameters, it should be
separated via "&" char.
BTW, why are you using querystring to store large data as querystring has
length limitation, is there any paritcular requirement here? You can
provide some further info about the application code logic or requirement
so that we can look for any other potential solutions.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "Nick" <a@xxxxx>
Subject: Url Redirection
Date: Fri, 25 Jul 2008 16:31:31 +0100
on,
Hi there,
I'm passing an HTML encoded string to an URL in the query parameter.
This query string works perfect in the website if you are already logged
if you are not logged on the application calls?ReturnUrl=%2fDSP%2fsecure%2fdefault.aspx%3finputfile%3dF%3a%255CFacebook%25
FormsAuthentication.RedirectToLoginPage() then the URL becomes malformed.
I then recieve the following error,
"The return URL specified for request redirection is invalid."
for example
?inputfile=F:%5CFacebook%5CDocuments%5CDocuments%5CUser's%20Guide.doc
then becomes
5CDocuments%255CDocuments%255CUser's%2520Guide.doc&inputfile=F:%5CFacebook%5
CDocuments%5CDocuments%5CUser's%20Guide.doc
Which is rather screwed. Any ideas how how I can work around this?
Thanks a million for your time in advance.
Nick.
.
- Follow-Ups:
- Re: Url Redirection
- From: Nick
- Re: Url Redirection
- References:
- Url Redirection
- From: Nick
- Url Redirection
- Prev by Date: Re: Ajax, Webmethod, PageMethod (multiple versions)
- Next by Date: Tables in Post
- Previous by thread: Re: Url Redirection
- Next by thread: Re: Url Redirection
- Index(es):
Relevant Pages
|