Solved

HttpUtility.UrlEncode Problem

Posted on 2006-11-17
2
392 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

785 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