Пример #1
0
        protected void SubmitButton_Click(object sender, EventArgs e)
        {
            MySqlCmd.MySqlContext input_udata = new MySqlCmd.MySqlContext();
            input_udata.conn       = MySqlCmd.Connection(WebConfigurationManager.ConnectionStrings["senshang_database_connection_string"].ToString());
            input_udata.status     = MySqlRequest.UPDATE;
            input_udata.create_cmd = create_cmd;

            MySqlCmd.SetMySqlCommand(ref input_udata);
            FilledCurrentDataGrid();
        }
Пример #2
0
        /// <summary>
        /// 此方法提供了一个统一的提交按钮的实现模板
        /// </summary>
        /// <param name="create_cmd">自定义命令</param>
        public static void UtilitySubmitButtonClick(MySqlRequest req_type, MySqlCmd.CreateCommand create_cmd)
        {
            MySqlCmd.MySqlContext input_udata = new MySqlCmd.MySqlContext();
            input_udata.conn       = MySqlCmd.Connection(WebConfigurationManager.ConnectionStrings["MySqlConnectionString"].ToString());
            input_udata.status     = req_type;
            input_udata.create_cmd = create_cmd;
            input_udata.res        = 0;

            MySqlCmd.SetMySqlCommand(ref input_udata);
        }