Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Calling the Web Service from the PocketPC -Documentation
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement