Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling the Web Service from the PocketPC -Documentation
Message
De
10/03/2008 18:41:04
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Calling the Web Service from the PocketPC -Documentation
Divers
Thread ID:
01300732
Message ID:
01300732
Vues:
53
I know the documentation for the following is not up to date:

Jump Start: Creating a PocketPC Application - C#
Step 7: Calling the Web Service from the PocketPC Form

2. Add the following code to the btnGetOrders_Click event handler:

private void btnGetOrders_Click(object sender, System.EventArgs e)
{
// Turn the cursor into an hourglass
Cursor.Current = Cursors.WaitCursor;

// Instantiate the Web Service class
CustomerOrdersWS.CustomerOrdersWS_CSharp wsCustOrders =
new CustomerOrdersWS.CustomerOrdersWS_CSharp();

// Call the Web Service
DataSet dsOrders = wsCustOrders.GetOrdersByCustomerID(this.txtCustomerID.Text);
// Bind the result set to the DataGrid
this.grdOrders.DataSource = dsOrders.Tables[0];
// Restore the cursor to a pointer
Cursor.Current = Cursors.Default;
}

Can give me some guidance on updating this code to utilize an entity vs. dataset?

Thanks, Ted
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform