Пример #1
0
 protected void SaveShipper_Button_Click(object sender, EventArgs e)
 {
     NwService.ShipperServiceClient client = new NwService.ShipperServiceClient();
     MyShipper shippe = new MyShipper();
     shippe.ShipperId = Convert.ToInt32(DisplayShipperID_TextBox.Text.Trim());
     shippe.CompanyName = CompanyName_TextBox.Text.Trim();
     shippe.Phone = Phone_TextBox.Text.Trim();
     client.SaveShipper(shippe);
 }
Пример #2
0
        protected void GetShipper_Button_Click(object sender, EventArgs e)
        {
            NwService.ShipperServiceClient client = new NwService.ShipperServiceClient();
            var shipper = client.GetShipper(int.Parse(EnterShipperID_TextBox.Text));
            DisplayShipperID_TextBox.Text = shipper.ShipperId.ToString();
            CompanyName_TextBox.Text = shipper.CompanyName.Trim();
            Phone_TextBox.Text = shipper.Phone.Trim();

        }
Пример #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     host = new NwService.ShipperServiceClient();
     
 }