Solved

HttpUtility.UrlEncode Problem

Posted on 2006-11-17
2
390 Views
Last Modified: 2008-02-01
Hello everyone,

I have this problem that I can't seem to figure out.

I generate an email message from my web page and the email message contains a form that has an action url with an encrypted parameter.

I use HttpUtility.UrlEncode to encode the Id parameter.

When I view the souce in the email message, the Id parameter looks like this:
<form method="post" name="FormResponse" action="http://www.....com/.../FormResponse.aspx?Id=h0qVJ%2bkD%2fQghFcvF0zEB4Fu8Ms8UOD8qeDgWoOJ3%2bR71jdHY78UZKfqLODpwt1kD">

When a user gets this email, and submits the form, the Id parameter ends up being:
h0qVJ+kD/QghFcvF0zEB4Fu8Ms8UOD8qeDgWoOJ3+R71jdHY78UZKfqLODpwt1kD

Not sure why it's doing this, can anyone help or know how to fix this?
0
Comment
Question by:quanmac
2 Comments
 
LVL 33

Accepted Solution

by:
raterus earned 500 total points
ID: 17967805
Email readers can do a number of "unknowns" to HTML source, I would highly suggest you not use an email form, rather bring them back to the application if possible.  There likely isn't much you are going to do to fix this, as it is your email reader's fault.
0
 
LVL 3

Author Comment

by:quanmac
ID: 17968668
I've found a way to fix this problem, I ended up using a hidden field in the form and used that to read it on my aspx page and it worked great.

Thanks for the help, I'm going to take a look at some of my email message forms and see which ones are just better off in the web application instead of the email.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Text in tooltip bound field bridview 3 30
asp.net bundle 8 36
ASP.net VB.net Email  a webpage 3 26
getting id from database 5 24
AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now