wcf return report

Posted on 2012-09-21
Last Modified: 2012-09-26
I just need a sample written in wcf and will return like List<datalibrary> Or return like list of information like report.

On the consume side in, I want to see something how to consume the wcf
by using code behind in like while loop or array because the consume sides don't have to any control to bind....

Question by:solution1368
    LVL 35

    Expert Comment

    by:Miguel Oz
    this is a simple example to return Employee objects in a generic list
    LVL 29

    Expert Comment

    by:Kumaraswamy R

    Author Comment

    mas_oz2003: Thank, but <list> object only returns count in the example.
    I have <list> and need return many rows....

    How can I do  that?
    LVL 35

    Accepted Solution

    The example only display the count, but it is returning the the list(lstEmp) as per your request:
     List<Employee> lstEmp = empClient.GetLstEmployees();
    lblEmpNo.Text = lstEmp.Count;// thisline displays count but you can use lstEmp  to do whatever you need

    Author Comment

    I see. lblEmpNo.Text = lstEmp.Count shows only one value and one rows. I need to get many rows like report. How can I do that?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now