how to get the table primary key after saving an item via AdoNetServiceProxy

Posted by Jronny on Stack Overflow See other posts from Stack Overflow or by Jronny
Published on 2010-05-25T03:38:44Z Indexed on 2010/05/25 3:41 UTC
Read the original article Hit count: 387

I have a js proxy class:

function ProxyClass() {
    this.Properties = null;
    this.Insert = function () {
        try {
            var service = new Sys.Data.AdoNetServiceProxy("/WcfDataService1.svc");
            service.insert(this, "TheTable");
        } catch (ex) {
            alert("error: " + ex);
        }
    };
}

The insert has been working, but I need to get the primary key of TheTable right after. How could we be able to pull it up? Thanks a lot

© Stack Overflow or respective owner

Related posts about asp.net-ajax

Related posts about ado.net-data-services