Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
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.
Posted
Updated 8-Nov-12 18:46pm
v2
Comments
Karthik Harve 9-Nov-12 0:46am    
[Edit] removed pre tags.
saud_a_k 9-Nov-12 1:23am    
look into http://fancybox.net/ its easy to use another aspx page within a model popup
Ravi Tuvar 9-Nov-12 1:30am    
You can create ajax call to code behind method which saves data in sql server on save button in popup window

1 solution

hi,

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900