I’m a newbie to asp .net and c# world. I’m trying to insert a very new record into a simple task manager database table, tasks (name, description, priority, start_date, end_date)
Here is my Task.cs and add.aspx code:
http://pastie.org/691005
When I submit the form, it just redirect me back to the Default.aspx page. Is there anyway to debug the inside the Insert method of Task.cs? How can I output the sql query from within the Task.cs file? I’m using Microsoft SQL express.
Thank you
I think your
INSERTstatement’s syntax is wrong.You have:
The correct syntax is:
The syntax you’re using works for an
UPDATEstatement, as in