ASP.NET 4.5 TryUpdateModel not picking Form values in WebForm using Master-Page

后端 未结 2 555
长情又很酷
长情又很酷 2021-02-15 07:03

I am using WebForms and I am trying to perform Model Validation inside a Master-Page and for some reason the model is not picking up the values, meaning that after the validatio

2条回答
  •  萌比男神i
    2021-02-15 07:40

    I found a solution.You can write a little front-end code to set the name equal to id and don't forget to set ClientIDMode to Static

    
    

提交回复
热议问题