在wpf中的sqlite表中存储richtextbox的文本 [英] Storing text of richtextbox in sqlite table in wpf

查看:125
本文介绍了在wpf中的sqlite表中存储richtextbox的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的查询:

string Query =插入Customer_New(Opening_Date,Joining_Date,Clients_Title,Card_Number,Key_Person,Address_Current)值('+ this.Date_Joining.Text +', '+ this.date_open.Text +','+ this.txt_Title.Text +','+ this.txt_cardnum.Text +','+ this.txt_kperson.Text +',' + this.rtf_caddress。_______ +');



这里Address_Current是富文本框。我已将物品名称放置为虚线。告诉我如何存储richtextbox文本到数据库表Customer_New?

Here is my Query :
string Query = "Insert into Customer_New ( Opening_Date, Joining_Date, Clients_Title, Card_Number,Key_Person,Address_Current) Values('" + this.Date_Joining.Text + "','" + this.date_open.Text + "','" + this.txt_Title.Text + "','" + this.txt_cardnum.Text + "','" + this.txt_kperson.Text + "','" + this.rtf_caddress. _______+ "')";

Here "Address_Current" is rich text box .On property name i have placed dashed .Tell me how to store richtextbox text into data base table Customer_New ?

推荐答案

访问这里...

http://vbcity.com/blogs/xtab/archive/ 2010/02/22 / wpf-richtextbox-how-to-load-save-plain-text-content.aspx [ ^ ]
visit here...
http://vbcity.com/blogs/xtab/archive/2010/02/22/wpf-richtextbox-how-to-load-and-save-plain-text-content.aspx[^]


这篇关于在wpf中的sqlite表中存储richtextbox的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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