Link to home
Start Free TrialLog in
Avatar of quanmac
quanmac

asked on

HttpUtility.UrlEncode Problem

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?
ASKER CERTIFIED SOLUTION
Avatar of raterus
raterus
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of quanmac
quanmac

ASKER

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.