Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 749
  • Last Modified:

wcf return report

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 asp.net/c#, 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....

Thanks
0
solution1368
Asked:
solution1368
  • 2
  • 2
1 Solution
 
Miguel OzSoftware EngineerCommented:
Check:
http://www.dotnetspeaks.com/DisplayArticle.aspx?ID=29
this is a simple example to return Employee objects in a generic list
0
 
Kumaraswamy RCommented:
0
 
solution1368Author Commented:
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?
0
 
Miguel OzSoftware EngineerCommented:
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
0
 
solution1368Author Commented:
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?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now