 |
| 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
|
|
|
|

September 15th, 2006, 09:40 AM
|
|
Authorized User
|
|
Join Date: Jun 2006
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

September 15th, 2006, 10:29 AM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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.
|
|

September 15th, 2006, 10:48 AM
|
|
Authorized User
|
|
Join Date: Jun 2006
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks.
Appreicate your quick response.
Rams
|
|

September 15th, 2006, 12:20 PM
|
|
Authorized User
|
|
Join Date: Jun 2006
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
can't we do this with server.htmlencode and server.htmldecode?
Rams
|
|

September 15th, 2006, 12:27 PM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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.
|
|

September 18th, 2006, 10:04 AM
|
|
Authorized User
|
|
Join Date: Jun 2006
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Excellent. I wonder how would you set this if we are sending email( includes above links) in VB.NET application.
Rams
|
|

September 18th, 2006, 10:06 AM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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.
|
|

September 18th, 2006, 10:31 AM
|
|
Authorized User
|
|
Join Date: Jun 2006
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Earlier i was mentioned we are writing above links in ASP.Net and now how can we write in VB.net desktop application.
Rams
|
|

September 18th, 2006, 11:44 AM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
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.
|
|

September 18th, 2006, 12:02 PM
|
|
Authorized User
|
|
Join Date: Jun 2006
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thank you very much. it works.
Rams
|
|
 |