TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Algo Rhythm
NA
41
0
Inserting Database Record Using DataSource
Aug 25 2010 12:10 PM
This code:
Me
.SqlDataSource1.InsertParameters(
"@term"
) =
New
Parameter(
"@term"
, Data.DbType.AnsiString,
"test"
)
Me
.SqlDataSource1.InsertParameters(
"@definition"
) =
New
Parameter(
"@definition"
, Data.DbType.AnsiString,
"test"
)
Me
.SqlDataSource1.Insert()
Gives me this error:
Cannot insert the value NULL into column 'term', table 'GeneralAssembly.dbo.tblGACMSGlossary'; column does not allow nulls. INSERT fails.
The statement has been terminated.
Insert code is defined in data source as
InsertCommand
="INSERT INTO [tblGACMSGlossary] ([term], [definition]) VALUES (@term, @definition)"
Reply
Answers (
2
)
C# GUI, Communicating between two GUI
N-Layer architecture vs N-tiered architecture