如何使用asp.net中的java脚本将数据插入数据库 [英] how to insert data into database by using java script in asp.net

查看:67
本文介绍了如何使用asp.net中的java脚本将数据插入数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用asp.net中的java脚本将数据插入数据库

how to insert data into database by using java script in asp.net

推荐答案

嗯,这实际上取决于数据库的位置。如果它是客户端数据库,我建议使用索引数据库 [ ^ ]方法。如果它是服务器端数据库,那么我建议使用AJAX将请求传输到服务器端方法(我喜欢RESTful服务)并让服务器端代码管理插入。对于这种方法,搜索AJAX REST JavaScript并在此处插入您选择的数据库作为搜索词。
Well, it really depends on where the database is. If it's a client side database I would recommend using the Indexed DB[^] approach. If it's a server side database, then I would recommend using AJAX to transmit a request to a server side method (I like RESTful services for this) and let the server side code manage the insert. For this approach, search on AJAX REST JavaScript and insert the database of your choice in here as your search terms.


引用这些链接...



会有所了解



通过JQuery调用ASP.NET服务器端方法

使用jQuery AJAX示例调用ASP.Net页面方法 [ ^ ]
refer these links...

will get idea

Calling ASP.NET server side method via JQuery
Call ASP.Net Page Method using jQuery AJAX Example[^]


这篇关于如何使用asp.net中的java脚本将数据插入数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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