在Asp.net中使用.ajax向SQL服务器插入数据 [英] insert-data to sql server using.ajax in Asp.net

查看:100
本文介绍了在Asp.net中使用.ajax向SQL服务器插入数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在Asp.net中使用ajax将数据插入sql服务器,而我在ajax中的总体设计呢?我正在使用Ajax工具包3.5.

how i can insert-data into sql server using ajax in Asp.net my total design in ajax . i''m using Ajax toolkit 3.5.

推荐答案

您想知道如何从Javascript与服务器对话.
通过客户端(Javascript)与服务器端进行交互的方法很少:
1. XMLHttpRequest [回调 [ Web服务调用 [ PageMethod [ http://api.jquery.com/jQuery.ajax/ [ http://api.jquery.com/category/ajax/ [ http://www.w3schools.com/jquery/jquery_ref_ajax.asp [
You want to know how to talk to server from Javascript.
There are few ways to interact with server side through client side(Javascript):
1. XMLHttpRequest[^]
2. Callback[^]
3. WebService call[^]
4. PageMethod[^]

Pick one and use it.

My preference, XMLHttpRequest, using jQuery, here, have a look:
http://api.jquery.com/jQuery.ajax/[^]
http://api.jquery.com/category/ajax/[^]
http://www.w3schools.com/jquery/jquery_ref_ajax.asp[^]:


此问题不属于"快速答案".但是,快速 Google搜索肯定会让您入门- ^ ].
This question does not belong to "Quick Answers". However, a quick Google search would certainly get you started - insert data into database using ajax asp.net[^].


这篇关于在Asp.net中使用.ajax向SQL服务器插入数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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