如何从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.