title: Dynamically-assigning string to text box causes "A potentially dangerous Request.Form value was detected from the client" error
body: <p>I have an ASP.NET web form that allows a user to send an e-mail from inside my application. The form contains three text boxes, a file upload control, and a button for sending the e-mail. </p>
  
  <p>Mailmessage.value = ; </p>
  
  <p>When I comment out the above line and replace it with "<code>Mailmessage.Value = "Some string";</code>", my program works fine.</p>
  
  <p>The above is contained inside of a click event handler named "EmailButton_Click". I've tried all of the solutions outlined in the following article, but none of them solved my problem:
  <a href="http://www.aspsnippets.com/Articles/ASPNet-Error-A-potentially-dangerous-RequestForm-value-was-detected-from-the-client.aspx" rel="nofollow">http://www.aspsnippets.com/Articles/ASPNet-Error-A-potentially-dangerous-RequestForm-value-was-detected-from-the-client.aspx</a></p>
  
  <p>Thanks in advance for your help.</p>