Hello everyone and thanks for your help in advance. I am a jQuery novice and want to implement jQuery Dialog widget to perform CRUD operation to a SQL Server database. I have seen a few examples, but am really confused as to how to implement this solution.
Do you need an actual page that performs the CRUD operations, and the use an Ajax POST, or is there another method? Any help would be appreciated.
Based on my understanding ,you need to define a page which contian your jQuery Dialog ,then use the ajax to performs the curd operations.
Here are two tutorials which you can refer:
This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore,
Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you
completely understand the risk before retrieving any software from the Internet.
you can do it with the help of Partial views. here is the list of steps you may be doing to implement this,
- create MVC partial views of your CRUD operations,
- create a parent/ container page that will call/hold these partial views
- now from your container page, call these partial views in jQuery dialog boxes, in response to user actions,
- in your controller class add methods to return these partial views and also add methods to handle post requests from these views.
hopefully it will help you, and you can get help from the links shared by last reply from "Kevin Shen". thanks
jQuery Dialog widget to perform CRUD operation to a SQL Server database.
You need to integrate that jQuery Dialog widget with the server side code which actually performs the CRUD operations since jQuery don’t have direct access to SQL database.
Do you need an actual page that performs the CRUD operations, and the use an Ajax POST, or is there another method?
You don’t need an actual page. You can implement the CRUD operations using web services (Web API, ASMX or anything you like) and call those web service endpoints using AJAX.
Thank you all for the response and excellent answers. Sorry for the delay in marking answered and getting back to these posts.