Quote:
this returns 0 value from cmd.ExecuteNonQuery().
cmd.ExecuteNonQuery()
returns number of records affected after updating the table. As your output is 0 means 0 number of rows affected after execution of the query.
You must check your
Update
query in
Where
clause mainly
in
Session["EditTitle"].ToString();
because this is a
varchar
it may have spaces which may differ form your available records.