Skip to content
Loading
Issue With Insert Record In Database In Mvc(Asp.NET)    
  •             
  •     
  •         class="form-group">    
  •             class="col-md-offset-2 col-md-10">    
  •                 "submit" value="Create" class="btn btn-default" />    
  •                 
  •             
  •         
  • }    
  •     
  •     @Html.ActionLink("Back to List", "Index")    
  •     
  •     
  • "~/Scripts/jquery-1.10.2.min.js">    
  • "~/Scripts/jquery.validate.min.js">    
  • "~/Scripts/jquery.validate.unobtrusive.min.js">  
  • I already created a database in SQL Server Management Studio, and adding a database in my project successfully. But when I click on the create button, the code does not generate any errors, but after a refresh of my database, the record is not shown....

    I put the viewbag.message="record successfully" the message did not display and record not display in SQL Server?

    Can someone please help? What am I doing wrong?

    10 Replies

    Know the answer? Post it — somebody with the same question will find it here.