Here are the commands in the sqlDataSource line.

InsertCommand="INSERT INTO T_ADMIN_LOGIN (ALID, LNAME, FNAME, USERID,
DOMAIN, STATUS) VALUES (S_ADMIN_LOGIN.NEXTVAL, :Lname, :Fname, :Userid,
'AAC', 1)"

UpdateCommand='UPDATE T_ADMIN_LOGIN SET LNAME = :Lname, FNAME = :Fname,
USERID = :Userid, STATUS = :Status where alid=:alid'>

The update works fine. The insert fails with: ORA-01036: illegal
variable name/number

Anyone got any ideas?

TIA
Chris

Re: using DetailsView control, update works, insert fails by ReyN

ReyN
Wed Oct 04 10:59:55 CDT 2006


S_ADMIN_LOGIN

shouldn't this be T_ADMIN_LOGIN?


Re: using DetailsView control, update works, insert fails by oaksong

oaksong
Thu Oct 05 16:02:24 CDT 2006

No. It's an Oracle sequencer, not a table.

ReyN wrote:
> S_ADMIN_LOGIN
>
> shouldn't this be T_ADMIN_LOGIN?