G
Guest
Ok, I'm out of practice in web work, I've never done any webwork in 2.0, and
I have to come up with a VB/Dot Net 2.0 web site in a week or two. Business
as usual.
First, I know I can't trust Visual Studio to create the correct Update
statement so every update string has to manually updated. I have a table
with a timestamp field and I'm trying to make it work. Here is the current
update statement:
UPDATE tblProject SET RK_Unit = @RK_Unit, RK_PG = @RK_PG, ID = @ID, Name
= @Name, [Desc] = @Desc, RK_Class = @RK_Class, G0 = @G0, Notes = @Notes
WHERE (PK = @PK) AND (@IsNull_upsize_ts = 1) AND (upsize_ts IS NULL) OR
(PK = @PK) AND (upsize_ts = @upsize_ts)
When I try to do an update from a bound DetailsView, I get this error: Value
cannot be null. Parameter name: IsNull_upsize_ts
So far as I can remember, I have not changed anything relating to logic
involving the timestamp or this @IsNull parameter. I'm really not clear
what's going on here or exactly what the @IsNull parameter's purpose is.
(Haven't dealt with timestamps for a while either.)
Could someone please explain this?
I have to come up with a VB/Dot Net 2.0 web site in a week or two. Business
as usual.
First, I know I can't trust Visual Studio to create the correct Update
statement so every update string has to manually updated. I have a table
with a timestamp field and I'm trying to make it work. Here is the current
update statement:
UPDATE tblProject SET RK_Unit = @RK_Unit, RK_PG = @RK_PG, ID = @ID, Name
= @Name, [Desc] = @Desc, RK_Class = @RK_Class, G0 = @G0, Notes = @Notes
WHERE (PK = @PK) AND (@IsNull_upsize_ts = 1) AND (upsize_ts IS NULL) OR
(PK = @PK) AND (upsize_ts = @upsize_ts)
When I try to do an update from a bound DetailsView, I get this error: Value
cannot be null. Parameter name: IsNull_upsize_ts
So far as I can remember, I have not changed anything relating to logic
involving the timestamp or this @IsNull parameter. I'm really not clear
what's going on here or exactly what the @IsNull parameter's purpose is.
(Haven't dealt with timestamps for a while either.)
Could someone please explain this?