Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

HttpUtility.UrlEncode Problem

Posted on 2006-11-17
2
Medium Priority
?
405 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 1500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

721 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