Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 699691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:24:51+00:00 2026-05-14T03:24:51+00:00

I call an ajax enabled wcf service method , <script type=text/javascript> function GetEmployee() {

  • 0

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…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:24:51+00:00Added an answer on May 14, 2026 at 3:24 am

    The only suggestion: do not use DataSets over WCF!

    DataSets are evil – they’re huge, they carry lots of overhead, the mix data with behavior – all things you should try to avoid like the plague when doing proper SOA. This is doubly true when you’re doing Ajax calls asynchronously – you want to transfer as little data as possible using JSON – and having a DataSet with DataTables does not help you at all for your JSON calls…

    So really : get yourself acquainted with some kind of an ORM, and grab objects and lists of objects and toss the DataSets onto the digital recycling heap…..

    For a small project, if you’re using SQL Server as your backend, why not use Linq-to-SQL? Or if that doesn’t work for you, check out Subsonic

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF Ajax enabled web service that I call via jquery. It
I have an ajax enabled WCF service method : [OperationContract] public string Test(string name)
In Visual Studio 2010 I created a new Ajax enabled WCF Service [ServiceContract(Namespace =
I created a simple AJAX-enabled WCF service based on the MSDN tutorial [ServiceContract(Namespace =
I have created an AJAX-enabled WCF service to return a List<> of a custom
I'm using a simple ajax-enabled WCF service. I'm creating a string of XML on
We have a simple ASP.Net WCF Ajax enabled web service which is called via
I have an AJAX-enabled WCF service with the following signature: [OperationContract] [WebGet] public JQGridContract
I using a Ajax-Enabled Wcf service for the first time trying to test a
I'm developing an Asp.Net chat by using Ajax-Wcf Service enabled. It's a very simple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.