protected void LoadGridViewShippers()
    {
        ShipperCS ship = new ShipperCS();

        GridViewShippers.DataSource = ship.GetShippers();

        GridViewShippers.DataBind();
    }
Example #2
0
 protected void ButtonSubmit_Click(object sender, EventArgs e)
 {
     try
     {
         ShipperCS shp = new ShipperCS();
         shp.InsertNewShipper(TextBoxCompanyName.Text, TextBoxTelephoneNumber.Text);
         PanelFormInsert.Visible  = false;
         PanelUserMessage.Visible = true;
     }
     catch (Exception ex)
     {
         LabelErrorMessage.Text = ex.Message.ToString();
     }
 }