|
|
|
You can use method like this.
suppose you enter a value with single quote in text box then use the code like this
string name = txtname.Text.Replace("'", "''");
//first param is a single quote within double quotes. second param is two single quotes within double quotes.
//Also, if this application needs security you should be aware of 'SQL Injection'
Do you like this article it Take 5 Second to Share with your Friends
|
Subscribe Email alerts to receive more Tech Updates to your Inbox! |
|

Not Getting? Feel free to ask