|
-
Jul 30th, 2007, 03:46 AM
#1
Thread Starter
Fanatic Member
commandField in detailView control
Hey,
in the website I'm developing, I use a detailView control to view my records. I vreate a custom button to behave as the default Edit/new button of the control for transaction need during the insert or update operation.
When I press on my button, I get an error message saying that:
'Cannot insert null in the column columnName' . However, when I use the default I got no error messag.
I think that the problem is with the parameter collection of the insertCommand or updatecommand but I don't know how to fix the problem.
my code looks like this
vb Code:
open connection
begin transaction
try
new Logcommand
detailView1.Insert
logcommand.execute non query
commit transacation
catch
echo error
rollback transaction
finally
close connection
end try
-
Jul 30th, 2007, 08:21 AM
#2
Re: commandField in detailView control
If that's your actual code, how on earth did you get it to compile?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|