Possible Duplicate:
Where does Console.WriteLine go in ASP.NET?
I know the delete is occuring has I checked the database
code:
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();
}
Does it supposed to show the message on webpage itself?
Regards Tea