Need to access data from WCF service and update the data using Jquery or JavaScript -


in application server side have wcf-service. client side using bootstrap.as per requirement have data wcf service , display in grid,it had buttons add,edit , delete.by selecting table row need update , send data database.all actions have jquery or javascript. can please suggest me way approach this.

as note, bootstrap isn't relevant retrieving data server.

since you're using jquery, can use $.ajax() this. (see jquery.ajax() reference more details).

for example, data server, might this:

$.get("url/to/rest/resource")   .done(function( data ) {     // data   })   .fail(function() {     console.error("failed data server.");   }); 

to save data database, i'm guessing rest service accepts post or put request:

var datatosave = { name: "joe", age: 28 }; $.post("url/to/rest/resource", datatosave)   .fail(function() {     console.error("failed save data.");   }); 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -