WPF,如何在数据库中插入文本cantains撇号 [英] WPF, How can I insert text cantains apostrophe in database

查看:135
本文介绍了WPF,如何在数据库中插入文本cantains撇号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试编辑或创建用户并且我想插入带有撇号的文本时,它会给我错误,语法错误。

When I try to edit or create a user and I want to insert text which has apostrophe it give me error, incorect syntax.

推荐答案

我发现它

我使用过这行:

I found it
I used this lines :
richTextBox1.SelectAll();
string text = richTextBox1.Selection.Text;



你可以在其中加入任何字符richtextbox

完成:D


and you can put any character in this richtextbox
Done :D


这篇关于WPF,如何在数据库中插入文本cantains撇号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆