如何使用JSON和Web服务更新数据库 [英] How to update DB using JSON and webservices
问题描述
我的网页中有一个Ajax HTML编辑器,我想使用jQuery从该编辑器中编写的内容中获取数据.
现在,我想使用JSON,webservices将该编辑器值插入DB.
谁能指导我解决以上问题.
预先感谢.
I have a Ajax HTML editor in my webpage and i want to fetch data from what is written in that editor using jQuery.
Now i want to insert that editor value into DB using JSON, webservices.
Can anyone please guide me to solve this above issue.
Thanks in advance.
推荐答案
我认为您设法使用JSON发送和接收数据.
JSON具有
Hi,
I think you manage to sent and recive data using JSON.
JSON has
serialize()
和
Deserialize()
方法,可以将JSON对象隐蔽为普通对象或字符串,因此您可以插入
数据是正常方式.
以下帖子将有助于解决问题
http://stackoverflow.com/questions/2246694/how-to-convert-json-object [ http://www.simple-talk.com /sql/t-sql-programming/consumption-json-strings-in-sql-server/ [
methods that can covert JSON object to normal object or sting so you can insert
data as normal way.
Following post will help to resolve the problem
http://stackoverflow.com/questions/2246694/how-to-convert-json-object-to-custom-c-sharp-object[^]
http://www.simple-talk.com/sql/t-sql-programming/consuming-json-strings-in-sql-server/[^]
这篇关于如何使用JSON和Web服务更新数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!