Passing value from Controller to View in MVC

后端 未结 2 2021
一整个雨季
一整个雨季 2021-01-25 20:07

I have a view that was generated using data scaffolding. The view has a textfield:

Create View:

     
2条回答
  •  执念已碎
    2021-01-25 21:04

    One additional thing to point out is that if you are passing a key value that is stored in the web.config file, say for reCAPTCHA, and the validation fails then you will need to also set the key value in the HttpPost section.

提交回复
热议问题