Salman  Mushtaq

Salman Mushtaq

  • NA
  • 45
  • 32.4k

Data is inserted in database before submit button

Jan 31 2014 7:35 AM
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  

Answers (2)