There is single and double quotes in the address textbox .How can I insert into database. I am using SQL2005. My code is as follows...
str = \"exec sp_cust_reg \
You escape ' as ''.
'
''
So instead of str.Replace("\'", " ") use str.Replace("'", "''")
str.Replace("\'", " ")
str.Replace("'", "''")