Hi Gerry, thanks for the solution.
However when I changed my code on the
Session("UserName") to
lblOwner.Text to do a tryout to test the same error message re-appear. Is there anything more I could provide to help you understand more?
Not sure does this helps, but the codes below are my DB settings of the dbo.Offer that I trying to push my data into:
CREATE TABLE [dbo].[Offer](
[OfferNo] [int] IDENTITY(5000,1) NOT NULL,
[Offer_Date] [datetime] NOT NULL,
[Offer_ToUsr] [int] NOT NULL,
[Offer_ForItemID] [int] NULL,
[Offer_ForSvcID] [int] NULL,
[Offer_ExItemID] [int] NULL,
[Offer_ExSvcID] [int] NULL,
[UserID] [int] NOT NULL,
CONSTRAINT [PK_Offer_OfferNo] PRIMARY KEY CLUSTERED
(
[OfferNo] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Offer] ADD DEFAULT (getdate()) FOR [Offer_Date]
GO
ALTER TABLE [dbo].[Offer] WITH CHECK ADD CONSTRAINT [FK_Offer_UserID] FOREIGN KEY([UserID])
REFERENCES [dbo].[UserInfo] ([UserID])
GO
ALTER TABLE [dbo].[Offer] CHECK CONSTRAINT [FK_Offer_UserID]
GO