protected void DetailsView1_ItemInserted(object sender, EventArgs e)
{
using (SqlCommand cmd2 = new SqlCommand("uspUpdateDisplayHours", cn))
{
cn.Open();
cmd2.CommandType = CommandType.StoredProcedure;
cmd2.ExecuteNonQuery();
cn.Close();
}
DetailsView1.DataBind();
}
}
存储过程正在 SQL Server 上运行 - 更新表单上的 column1。但没有在 .net 上显示结果/数据且没有错误。