Problem while inserting html control in my database in Asp.Net
<p>My problem is that I'm inserting HTML control using Server.HtmlEncode() method <code>&lt;a href=''&gt;Apply now!&lt;/a&gt;</code> in my database through text box but whenever I'm inserting it throws an exception.  </p>

<p>My Code is Here</p>

<pre><code>textbox1.text=Server.Server.HtmlEncode("`&lt;a href=''&gt;Apply now!&lt;/a&gt;`");

//Database entry

obj.html=textbox1.text;
</code></pre>
