Solved

HttpUtility.UrlEncode Problem

Posted on 2006-11-17
2
400 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

630 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