Special symbols cannot be stored in SQL Server from ASP.NET 3.5
<p>I have created a website in <a href="http://en.wikipedia.org/wiki/ASP.NET" rel="nofollow">ASP.NET</a> 3.5 that takes some input in text format and saves it in a SQL Server 2005 database.</p>

<p>The database field is <code>varcahar(50)</code>.</p>

<p>But I can't do it if data in text box contains special symbols like &lt;,>,#,@,.</p>

<p>It generates a client script error showing security error.</p>

<p>For scripting I am using JavaScript.</p>
