Hi all ! today i faced a new problem. I developed a MVC 4 Application ,
Application consists database and one table with some fields
Database name : Student
Table : Info(Id,Name,City)
Id is auto increment , i used form with action attribute , everything is ok but whenever page of add student is open data is inserted before i click on submit button ,
because Id is auto increment so remaining values pass null m explain this problem and kindly share some solution
Data is inserted in database before submit button
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Suresh Babu113 reputationPosted Jan 31, 2014, 6:14 PM EST
Salman Mushtaq44 reputationPosted Jan 31, 2014, 7:52 PM EST