Пример #1
0
    protected void submitButton_Click(object sender, EventArgs e)
    {
        //TODO Lab 13: call the XML Web service method
        DentalService getDentistsByPostCodeProxy = new DentalService();
        DataSet       dentistsByPostCodeDataSet  = new DataSet();

        dentistsByPostCodeDataSet   = getDentistsByPostCodeProxy.GetDentistsByPostalCode(postalCodeTextBox.Text);
        dentistsGridView.DataSource = dentistsByPostCodeDataSet;
        dentistsGridView.DataBind();
    }
Пример #2
0
    protected void GetAllDentistsButton_Click(object sender, EventArgs e)
    {
        //TODO Lab 13: call the XML Web service method
        DentalService getAllDentistsProxy = new DentalService();
        DataSet       allDentistsDataSet  = new DataSet();

        allDentistsDataSet          = getAllDentistsProxy.GetAllDentists();
        dentistsGridView.DataSource = allDentistsDataSet;
        dentistsGridView.DataBind();
    }