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
Niranjan Poddar
1.1k
648
95.8k
Entity Framework
Dec 31 2014 2:04 AM
Dear all,
Please help me,
when i am trying to insert records into table, that time invoked an error- like---
An error occurred while updating the entries. See the inner exception for details.
how to solve this problem in entity framework...
my code-
protected void btnSave_Click ( object sender, EventArgs e )
{
CONTACT con = new CONTACT ( );
con.ID = 0;
con.FNAME = txtFname.Text.ToString ( );
con.LNAME = txtLname.Text.ToString ( );
con.PHONE = txtContact.Text.ToString ( );
TEST_DBEntities dd = new TEST_DBEntities ( );
dd.CONTACTs.Add ( con );
dd.SaveChanges ( );
}
Regards
Niranjan Poddar
Reply
Answers (
1
)
Unabletocastobjectoftype 'System.String' totype 'System.byte
how to retrive textbox from grid and save to database withou