Reputation: 35679
MyTable.Update(long.Parse(id), txtLocation.Text, txtCode.Text, locale,
chkAvailable.Checked, DateTime.Now);
Neither chkAvailable.Checked or DateTime.Now cause an update but changing the other fields do...
What's going on?
I'm using SQL Server 2005. .NET 3.5 SP1
Rob
Upvotes: 0
Views: 379
Reputation: 37
Did you try another way ?? like
Object obj = new Object(); obj.field = xxx; obj.field = xxxx;
obj.Save();
Other question ? What the database do you using ??? I´m asking because not all the databases have the type boolean and you set in the line "chkAvailable.Checked"
Upvotes: 1