Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

URL in a querysting?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JJ - 11 May 2007 11:30 GMT
Is there a way to include a url in a querysting?

JJ
JJ - 11 May 2007 11:43 GMT
Sorry - there doesn't seem to be any problem with doing this - my error was
something else.

> Is there a way to include a url in a querysting?
>
> JJ
Rob Meade - 11 May 2007 13:36 GMT
> 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://www.your-domain.com?previouspage=default.a
sp&userid=10&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
JJ - 11 May 2007 14:28 GMT
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

>> Sorry - there doesn't seem to be any problem with doing this - my error
>> was something else.
[quoted text clipped - 15 lines]
>
> Rob
David - 11 May 2007 15:57 GMT
urlencode the url in the parameter. That should convert your & to &

Signature

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

> Good point didn't think of that.
>
[quoted text clipped - 26 lines]
>>
>> Rob
JJ - 11 May 2007 16:05 GMT
Just as I was testing that very solution! - Thanks David.

JJ

> urlencode the url in the parameter. That should convert your & to &
>
[quoted text clipped - 28 lines]
>>>
>>> Rob
Göran Andersson - 09 Aug 2007 11:18 GMT
> urlencode the url in the parameter. That should convert your & to &

No, it should convert & to %24.

& is the html code for &.

Signature

Göran Andersson
_____
http://www.guffa.com


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.