Пример #1
0
    protected void Submit_Click(object sender, EventArgs e)
    {
        RouterBL rbl = new RouterBL(Convert.ToInt64(txtSr_no.Text), txtType.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));

        rbl.Delete();
        Response.Redirect("InventAdmin.aspx");
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        RouterBL rbl = new RouterBL();

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