Allow Html Content to be posted
<p>Recently i have faced an interview question.</p>

<p>You have finished an ASP.NET application using .NET framework 3.5.<br>
You plan to submit text that contains HTML code to a page in the application.<br>
You need to ensure that the HTML code can be submitted successfully without affecting other applications that run on the web server.<br>
What would be your option?</p>

<ol>
<li><p>Add the following in Web.Config</p>

<pre><code>&lt;system.web&gt;
  &lt;pages validateRequest="false"/&gt;
&lt;/system.web&gt;
</code></pre></li>
<li><p>Add the following in Machine.Config</p>

<pre><code>&lt;system.web&gt;
  &lt;pages validateRequest="false"/&gt;
&lt;/system.web&gt;
</code></pre></li>
</ol>

<p>I guess the correct answer could be (1). Just wish to confirm the answer from SO experts. Please help me.</p>
