我知道删除正在发生我检查了数据库
代码:
try
{
MyCommand.Connection.Open();
int count = MyCommand.ExecuteNonQuery();
if (count > 0)
{
Console.WriteLine("Delete Success!!!");
//lblMessage.Text = tbTourName.Text + " Deleted!";
}
else
{
Console.WriteLine("No Delete!!!");
}
Console.ReadLine();
}
catch (SqlException ex)
{
Console.WriteLine("Delete Failed coz.. " + ex.Message);
}
finally
{
MyCommand.Connection.Close();
}
它是否应该在网页本身上显示消息?
敬茶