protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { SqlCommand cmd1 = new SqlCommand("UPDATE feedback SET ACK=@ACK WHERE EMAIL_ID=@EMAIL_ID", con1); if (!string.IsNullOrEmpty(TextBox6.Text)) { cmd1.Parameters.AddWithValue("@ACK",TextBox6.Text); } con1.Open(); cmd1.ExecuteNonQuery(); con1.Close(); Label1.Text = " Data Updates Succesfully on " + System.DateTime.Now.ToShortDateString(); }
@EMAIL_ID
if (!string.IsNullOrEmpty(TextBox6.Text))
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)