Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > URL in a querysting?

Reply
Thread Tools

URL in a querysting?

 
 
JJ
Guest
Posts: n/a
 
      05-11-2007
Is there a way to include a url in a querysting?

JJ


 
Reply With Quote
 
 
 
 
JJ
Guest
Posts: n/a
 
      05-11-2007
Sorry - there doesn't seem to be any problem with doing this - my error was
something else.

JJ
"JJ" <> wrote in message
news:%...
> Is there a way to include a url in a querysting?
>
> JJ
>



 
Reply With Quote
 
 
 
 
Rob Meade
Guest
Posts: n/a
 
      05-11-2007
"JJ" wrote ...

> Sorry - there doesn't seem to be any problem with doing this - my error
> was something else.


You're probably already doing it - but you need to watch for the &'s in it,
especially if the URL you want to put in the querystring has its own
querystring etc...

For example...

http://www.your-domain.com?url=http:...0&redirect=yes

In the above, redirect=yes might be part of the first querystring, but could
easily be included in the second, or vice-versa...

Just thought it worth mentioning...

Cheers

Rob


 
Reply With Quote
 
JJ
Guest
Posts: n/a
 
      05-11-2007
Good point didn't think of that.

How would you deal with the '&'s ?

Perhaps replace them with another character, or surround the url in some
sort of marker character perhaps?

Thanks,

JJ

"Rob Meade" <> wrote in message
news:%...
> "JJ" wrote ...
>
>> Sorry - there doesn't seem to be any problem with doing this - my error
>> was something else.

>
> You're probably already doing it - but you need to watch for the &'s in
> it, especially if the URL you want to put in the querystring has its own
> querystring etc...
>
> For example...
>
> http://www.your-domain.com?url=http:...0&redirect=yes
>
> In the above, redirect=yes might be part of the first querystring, but
> could easily be included in the second, or vice-versa...
>
> Just thought it worth mentioning...
>
> Cheers
>
> Rob
>



 
Reply With Quote
 
David
Guest
Posts: n/a
 
      05-11-2007
urlencode the url in the parameter. That should convert your & to &amp;


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



"JJ" <> wrote in message
news:...
> Good point didn't think of that.
>
> How would you deal with the '&'s ?
>
> Perhaps replace them with another character, or surround the url in some
> sort of marker character perhaps?
>
> Thanks,
>
> JJ
>
> "Rob Meade" <> wrote in message
> news:%...
>> "JJ" wrote ...
>>
>>> Sorry - there doesn't seem to be any problem with doing this - my error
>>> was something else.

>>
>> You're probably already doing it - but you need to watch for the &'s in
>> it, especially if the URL you want to put in the querystring has its own
>> querystring etc...
>>
>> For example...
>>
>> http://www.your-domain.com?url=http:...0&redirect=yes
>>
>> In the above, redirect=yes might be part of the first querystring, but
>> could easily be included in the second, or vice-versa...
>>
>> Just thought it worth mentioning...
>>
>> Cheers
>>
>> Rob
>>

>
>



 
Reply With Quote
 
JJ
Guest
Posts: n/a
 
      05-11-2007
Just as I was testing that very solution! - Thanks David.

JJ

"David" <> wrote in message
news:%...
> urlencode the url in the parameter. That should convert your & to &amp;
>
>
> --
> Best regards,
> Dave Colliver.
> http://www.AshfieldFOCUS.com
> ~~
> http://www.FOCUSPortals.com - Local franchises available
>
>
>
> "JJ" <> wrote in message
> news:...
>> Good point didn't think of that.
>>
>> How would you deal with the '&'s ?
>>
>> Perhaps replace them with another character, or surround the url in some
>> sort of marker character perhaps?
>>
>> Thanks,
>>
>> JJ
>>
>> "Rob Meade" <> wrote in message
>> news:%...
>>> "JJ" wrote ...
>>>
>>>> Sorry - there doesn't seem to be any problem with doing this - my error
>>>> was something else.
>>>
>>> You're probably already doing it - but you need to watch for the &'s in
>>> it, especially if the URL you want to put in the querystring has its own
>>> querystring etc...
>>>
>>> For example...
>>>
>>> http://www.your-domain.com?url=http:...0&redirect=yes
>>>
>>> In the above, redirect=yes might be part of the first querystring, but
>>> could easily be included in the second, or vice-versa...
>>>
>>> Just thought it worth mentioning...
>>>
>>> Cheers
>>>
>>> Rob
>>>

>>
>>

>
>



 
Reply With Quote
 
=?ISO-8859-1?Q?G=F6ran_Andersson?=
Guest
Posts: n/a
 
      08-09-2007
David wrote:
> urlencode the url in the parameter. That should convert your & to &amp;


No, it should convert & to %24.

&amp; is the html code for &.

--
Göran Andersson
_____
http://www.guffa.com
 
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
URL - substitution of a correct URL by a GUID like URL in favorites. Just D. ASP .Net Mobile 0 08-11-2004 04:26 PM
Relative URL's to absolute URL's function ? wl ASP .Net 1 07-14-2004 10:28 AM
redirect URL's, return URL's, and URL Parameters Jon paugh ASP .Net 1 07-10-2004 05:29 AM
RE: The Web server reported the following error when attempting to create or open the Web project located at the following URL: <URL> =?Utf-8?B?VHJldm9yIEJlbmVkaWN0IFI=?= ASP .Net 0 06-07-2004 07:36 AM
Solution for: "Unable to validate that the file <name> matches the URL <url>" Doug ASP .Net 0 07-06-2003 02:40 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57