using DetailsView control, update works, insert fails

  • Thread starter Thread starter oaksong
  • Start date Start date
O

oaksong

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
 
Back
Top