To check special character

public static string getCleanSQLParameters(string strSQLParameter, bool bolCheckForNumeric)
{
if (strSQLParameter != "")
{
string str = strSQLParameter;
strSQLParameter = (strSQLParameter).Trim();
strSQLParameter = (strSQLParameter).Replace("'", "''");
//strSQLParameter = (strSQLParameter).Replace(")", "");
//strSQLParameter = (strSQLParameter).Replace("(", "");
//strSQLParameter = (strSQLParameter).Replace(";", "");
//strSQLParameter = (strSQLParameter).Replace("-", "");
//strSQLParameter = (strSQLParameter).Replace("|", "");


}
return strSQLParameter;
}

strAddress1 = getCleanSQLParameters(txtBrAddress1.Text, false);