Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Helo,

Iam developing an asp.net mvc3 application.I created the table with fields id,name ,duration,training year,comments and i designed the form with name,duration,training year,comments when i give the values in the form it is updating in the database with id 0.When i add another values in the form it is not updating.When the same project is running on another system it is taking default values.So is this is the problem with the system .Can u tell me the solution please

Regards
Prasanna
Posted

1 solution

Check your ID column's Identity Spefication (Is identity should be Yes)
 
Share this answer
 
v2
Comments
Prasanna Kumari 12-May-12 3:30am    
Hi,
Thanks for the reply

It is the problem with ID column specification only it should be selected as autoincrement .I got the solution
P.Salini 12-May-12 3:43am    
my 5!
member60 12-May-12 3:44am    
my 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900