How to pass datetime from view to controller in asp.net MVC

前端 未结 2 1471
南方客
南方客 2021-01-12 15:16

Am trying to pass below data form my view to controller.

Edited



        
2条回答
  •  不思量自难忘°
    2021-01-12 16:08

    If your studentData object in your controller is null, the JSON.stringify(Student) is producing an object that is not proper JSON or an object that can not be parsed to your Stu object.

    Verify that your JS Student object is correct, then verify the JSON you produce doing JSON.stringify

提交回复
热议问题