Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ServiceReference1.CommunityAssistServicesClient casc = new ServiceReference1.CommunityAssistServicesClient();

        List<ServiceReference1.ComService> ourServices = new List<ServiceReference1.ComService>();
        ourServices = casc.GetServices().ToList();

        DataList1.DataSource = ourServices;
        //// foreach(ServiceReference1.ComService cs in ourServices)
        // {
        // DataList1.DataMember=cs.ServiceName;
        // DataList1.DataMember = cs.ServiceDescription;
        // }
        DataList1.DataBind();
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ServiceReference1.CommunityAssistServicesClient casc = new ServiceReference1.CommunityAssistServicesClient();

        List <ServiceReference1.ComService> ourServices = new List <ServiceReference1.ComService>();

        ourServices = casc.GetServices().ToList();


        DataList1.DataSource = ourServices;
        ////  foreach(ServiceReference1.ComService cs in ourServices)
        //  {
        //      DataList1.DataMember=cs.ServiceName;
        //      DataList1.DataMember = cs.ServiceDescription;
        //  }
        DataList1.DataBind();
    }