protected void Submit_Click(object sender, EventArgs e)
    {
        SwitchesBL swbl = new SwitchesBL(Convert.ToInt64(txtSr_no.Text), txtMake_Model.Text, Convert.ToInt64(txtPart_no.Text), Convert.ToInt64(txtAsset_no.Text), Convert.ToInt64(txtSerial_no.Text), Convert.ToInt16(txtFloor.Text), Convert.ToInt16(txtX_Cord.Text), Convert.ToInt16(txtY_Cord.Text));

        swbl.Update();
        Response.Redirect("InventAdmin.aspx");
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        SwitchesBL swbl = new SwitchesBL();

        txtSr_no.Text = Convert.ToString(swbl.Max());
    }