Hi there,
I'm just new to .NET and LLBLGen and i got a simple question.
This is the situation.
I have made a webservice with a database using LLBLGen.
There's a webmethod like:
[WebMethod]
public UserCollection getContacts()
{
UserCollection users = new UserCollection();
users.GetMulti(null);
return users;
}
At the client side i want to load the data, that i get from the webservice, into a datagrid.
I tried a few things that i saw in a couple of tutorials, but nothing works.
This is what i've tried:
private void buttonGet_Click(object sender, EventArgs e)
{
DEweb.Service service = new Data_Exchange.DEweb.Service();
service.Url = "http://localhost:1490/DEweb/Service.asmx";
service.getContactsCompleted += new
Data_Exchange.DEweb.getContactsCompletedEventHandler(service_getContactsCompleted);
}
void service_getContactsCompleted(object sender, Data_Exchange.DEweb.getContactsCompletedEventArgs e)
{
dataGridContacts.DataSource = e.Result;
}
I there anyone who can help me with this problem?