Click here to Skip to main content
12,503,591 members (53,685 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET .NET jQuery
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 8-Nov-12 18:43pm
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160919.1 | Last Updated 9 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100