Data is inserted in database before submit button
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