how to work with two forms in a single view

前端 未结 3 1096
南笙
南笙 2020-12-09 22:59

Can I add more than one form in a single view , how to work with it. Can this be done using only one model or do I need to use different models for different forms. Can any

3条回答
  •  青春惊慌失措
    2020-12-09 23:58

    You should probably use two models and use partial view for each. Otherwise when you post the form you will need to take into consideration that one form may not have been filled out and model may be missing data.

提交回复
热议问题