Get Dataset returned from an ajax enabled wcf service....

Posted by Pandiya Chendur on Stack Overflow See other posts from Stack Overflow or by Pandiya Chendur
Published on 2010-03-24T05:38:52Z Indexed on 2010/03/24 5:43 UTC
Read the original article Hit count: 175

Filed under:
|
|

I call an ajax enabled wcf service method ,

<script type="text/javascript">
    function GetEmployee() {
        Service.GetEmployeeData('1','5',onGetDataSuccess);
    }
    function onGetDataSuccess(result) {
        Iteratejsondata(result)
            }
     </script>   

and my method is ,

[OperationContract]
public string GetEmployeeData(int currentPage,int pageSize)
{
    DataSet ds = GetEmployeeViewData(currentPage,pageSize);
    return GetJSONString(ds.Tables[0]);
}    

My Dataset ds contains three datatable but i am using the first one for my records... Other two datatables have values how can i get them in result...

function onGetDataSuccess(result) {
        Iteratejsondata(result)
            }

Any suggestion...

© Stack Overflow or respective owner

Related posts about dataset

Related posts about AJAX