protected void Submit_Click(object sender, EventArgs e) { Server_WSBL swsbl = new Server_WSBL(Convert.ToInt64(txtSr_no.Text), Convert.ToInt64(txtModel_no.Text), Convert.ToInt64(txtSerial_no.Text), Convert.ToInt64(txtAsset_no.Text), txtOS.Text, txtNetBios_name.Text, txtApp.Text, txtProcessor.Text, txtHardDisk.Text, txtRAM.Text, txtRAID.Text, txtWarranty.Text); swsbl.Update(); Response.Redirect("InventAdmin.aspx"); }
protected void Page_Load(object sender, EventArgs e) { Server_WSBL swsbl = new Server_WSBL(); txtSr_no.Text = Convert.ToString(swsbl.Max()); }