Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 15th, 2006, 09:40 AM
Authorized User
 
Join Date: Jun 2006
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default Querystring problem due to & symbol

Hi,

In my project, we added tracking feature whether user clicked on link or not. On click of Link, we are passing
tracking id and url to redirect(it includes querystring).
See following URL.

Ex:
stringname = "<a href=http://www.website.com/track.aspx?id=q23edrij&redirectuser=http://www.website1.com/page.aspx?name1=1&name2=2&name3=3"

when i call request("redirectuser").
I am getting http://www.website1.com/page.aspx?name1=1
 and remaining it truncates due to & symbol.

how to get whole redirectuser url like this? (http://www.website1.com/page.aspx?na...ame2=2&name3=3)

Appreciate your great help.
Thanks


Rams
__________________
Rams
 
Old September 15th, 2006, 10:29 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Replace your & in your second url with a different character, place it in the querystring and then change it back in code.

--Stole this from a moderator

I will only tell you how to do it, not do it for you.

Unless, of course, you want to hire me to do work for you.
 
Old September 15th, 2006, 10:48 AM
Authorized User
 
Join Date: Jun 2006
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks.

Appreicate your quick response.

Rams
 
Old September 15th, 2006, 12:20 PM
Authorized User
 
Join Date: Jun 2006
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default

can't we do this with server.htmlencode and server.htmldecode?

Rams
 
Old September 15th, 2006, 12:27 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I would use URLEncode as opposed to HTMLEncode.

--Stole this from a moderator

I will only tell you how to do it, not do it for you.

Unless, of course, you want to hire me to do work for you.
 
Old September 18th, 2006, 10:04 AM
Authorized User
 
Join Date: Jun 2006
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Excellent. I wonder how would you set this if we are sending email( includes above links) in VB.NET application.

Rams
 
Old September 18th, 2006, 10:06 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

What do you mean if you are sending an email?

--Stole this from a moderator

I will only tell you how to do it, not do it for you.

Unless, of course, you want to hire me to do work for you.
 
Old September 18th, 2006, 10:31 AM
Authorized User
 
Join Date: Jun 2006
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Earlier i was mentioned we are writing above links in ASP.Net and now how can we write in VB.net desktop application.

Rams
 
Old September 18th, 2006, 11:44 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

You would write the links the same way you would just pass the information around differently since the there are no URL Query strings to pass around.

--Stole this from a moderator

I will only tell you how to do it, not do it for you.

Unless, of course, you want to hire me to do work for you.
 
Old September 18th, 2006, 12:02 PM
Authorized User
 
Join Date: Jun 2006
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much. it works.

Rams





Similar Threads
Thread Thread Starter Forum Replies Last Post
& symbol does not show up. chobo2 C# 2 August 29th, 2008 08:06 PM
whitespace & querystring MArk_dB Classic ASP Basics 2 May 13th, 2007 03:36 AM
Symbol/Ascii Code Problem mic_gel VS.NET 2002/2003 0 January 14th, 2007 06:44 PM
Passing a querystring value that contains '&' jfrizelle Classic ASP Databases 3 March 20th, 2006 09:27 PM
cannot resolve symbol problem ioda006 JSP Basics 2 July 28th, 2003 06:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.