protected void Submit_Click(object sender, EventArgs e) { UC_SysBL ucbl = new UC_SysBL(Convert.ToInt64(txtSr_no.Text), txtSys_name.Text, txtSys_comp.Text, Convert.ToInt64(txtSerial_no.Text), Convert.ToInt64(txtAsset_no.Text)); ucbl.Insert(); Response.Redirect("InventAdmin.aspx"); }
protected void Page_Load(object sender, EventArgs e) { UC_SysBL ucbl = new UC_SysBL(); txtSr_no.Text = Convert.ToString(ucbl.Max()); }