How come the gridView Page is not inserting or updating or refreshing. What am I doing wrong?
protected void DetailsView1_ItemInserting(object sender, DetailsViewInsertEventArgs e)
{
using (SqlConnection cn = new SqlConnection(Utilities.ConnectionString()))
using (SqlCommand cmd = new SqlCommand("uspUpdateDisplayHours", cn))
{
cn.Open();
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
}
this.DetailsView1.DataBind();
}