コード例 #1
0
        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);
        }
コード例 #2
0
 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);
     }
 }