protected void btnType_Click(object sender, EventArgs e) { var type = new TypeName(txtType.Value); type.AddTypeToDatabase(); lblTypeAvailible.InnerText = type.CountType().ToString(); initializeSetupModal(); NextSlide("carousel-init", 1); }
protected void btnAddType_Click(object sender, EventArgs e) { try { String strType = typeName.Text.ToString(); var type = new TypeName(strType); type.AddTypeToDatabase(); bindTypeToGrid(); } catch (MySqlException ex) { ShowMessage(ex.Message); } }