文件名称:ExtJS .net分页例子
文件大小:9KB
文件格式:TXT
更新时间:2011-09-26 11:13:30
ExtJS .net分页例子
ExtJS .net分页例子SqlConnection con = new SqlConnection(); con.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;//ConnectionString con.Open(); SqlCommand cmd = new SqlCommand(); cmd.Connection = con; string sql = "UPDATE TB_MOVIE SET " + e.Field + "=@" + e.Field + " WHERE ID_MOVIE=@ID_MOVIE"; cmd.CommandText = sql; cmd.Parameters.AddWithValue("@" + e.Field, e.Value); cmd.Parameters.AddWithValue("@ID_MOVIE", e.Record["ID_MOVIE"]); try { cmd.ExecuteNonQuery(); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.Message); }