This is what my site looks like, pretty simple:
http://img.skitch.com/20100418-m8518amduh1bpkeujtixk3ajjb.jpg
I have been using the design editor to create the events for Add, Edit, and Delete. The Add / Delete work like a charm, but the Edit has issues. When I am editing a row, if I modify the Enabled and RemoteAccess values, the DB is updated and the values saved. However, when I type in something into Username and try to update, I get no error, but nothing is updated, not even the Enabled and RemoteAccess values.
My SQL Command is the folllowing:
When troubleshooting, I changed @Username to "Foo" and when running the web page it updates correctly, so the issue has to do something with @Username. This is not read-only and I've included it Username in the DataKeyNames.
Any idea what can be causing this behavior? Thanks!
http://img.skitch.com/20100418-m8518amduh1bpkeujtixk3ajjb.jpg
I have been using the design editor to create the events for Add, Edit, and Delete. The Add / Delete work like a charm, but the Edit has issues. When I am editing a row, if I modify the Enabled and RemoteAccess values, the DB is updated and the values saved. However, when I type in something into Username and try to update, I get no error, but nothing is updated, not even the Enabled and RemoteAccess values.
My SQL Command is the folllowing:
UpdateCommand="UPDATE [LabUser] SET [Username]=@Username,[Enabled]=@Enabled,[RemoteAccess]=@RemoteAccess WHERE [UserID] = @UserID" |
When troubleshooting, I changed @Username to "Foo" and when running the web page it updates correctly, so the issue has to do something with @Username. This is not read-only and I've included it Username in the DataKeyNames.
Any idea what can be causing this behavior? Thanks!