如何从asp.net中的模态弹出窗口(jQuery弹出窗口)将数据保存到SQL Server [英] how to save data into sql server from modal popup window(Jquery popup) in asp.net

查看:93
本文介绍了如何从asp.net中的模态弹出窗口(jQuery弹出窗口)将数据保存到SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个jquery弹出窗口,将一些数据输入到弹出窗口中,然后单击on_click按钮,将数据保存到sql server中.如何做到这一点?

谁能帮我这个忙.

hi i want to create a jquery popup window to enter some data into popup window and on_click of a button i want to save the data into sql server. how this can be done ?

Can any one help me on this please. One Example will be fine if possible.

推荐答案

hi,

您可以使用ajax模态弹出窗口来显示弹出窗口.
在弹出窗口中单击按钮时,可以调用一个方法,该方法将使用存储过程或插入语句并将数据加载到数据库.

模态Poup

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx [a> [ ^ ]


插入到sql数据库:

http://stackoverflow. com/questions/4762381/asp-net-using-a-form-to-insert-data-into-an-sql-server-table [


You can use ajax modal popup for displaying popup.
Onclick of the button in the popup, you can call a method which will use a stored procedure or a insert statment and load data to database.

modal poup

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx[^]


insert to sql database:

http://stackoverflow.com/questions/4762381/asp-net-using-a-form-to-insert-data-into-an-sql-server-table[^]

Hope this helps.


这篇关于如何从asp.net中的模态弹出窗口(jQuery弹出窗口)将数据保存到SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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