protected void grdVendor_SelectedIndexChanged(object sender, EventArgs e)
        {
            vendorManager = new VendorManager();

            int    vendorID = Int32.Parse(grdVendor.SelectedValue.ToString());
            Vendor vendor   = vendorManager.FindAVendor(vendorID);

            txtVendortName.Text   = vendor.Name;
            txtVendorEmail.Text   = vendor.Email;
            txtVendorAddress.Text = vendor.Address;
            txtVendorPhone.Text   = vendor.Phone;
        }
        protected void btnUpdateVendor_onclick(object sender, EventArgs e)
        {
            vendorManager = new VendorManager();

            int    vendorID = Int32.Parse(grdVendor.SelectedValue.ToString());
            Vendor vendor   = vendorManager.FindAVendor(vendorID);

            vendor.Name    = txtVendortName.Text;
            vendor.Email   = txtVendorEmail.Text;
            vendor.Address = txtVendorAddress.Text;
            vendor.Phone   = txtVendorPhone.Text;

            lblVendorsInsert.Text = vendorManager.UpdateVendor(vendor);
            ClearTxtBox();
        }