title: C# Potentially Dangerous Error, Apostrophe during Form Submission
body: <p>Please help me understand why this is happening. My Web Application retrieves text that contains Apostrophe from the database to display using a Label in a Web Form. However, it is getting a Potentially Dangerous Error when I submit the Web Form.</p>
  
  <p>I can solve this error by using HttpUtility.HtmlDecode() on the value before I set it to Label.Text</p>
  
  <p>I have been Googling, and I cannot understand the flow that causes this problem.</p>
  
  <p>I understand that Potentially Dangerous Error occurs when submitting potential HTML tags like '', and it also filters some encoded characters like "&#39;"</p>
  
  <p>However, what I cannot understand are:</p>
  
  <ol>
  <li><p>Does the string value automatically HTML encodes when it displays on the Web Form? Because the value from my database is not HTML encoded.</p></li>
  <li><p>Why does decoding it solves the error when my value from the database is not encoded in the first place? If that is the case, should I decode all values from database?</p></li>
  </ol>