Passing variables with POST in ASP.NET MVC

前端 未结 2 627
暗喜
暗喜 2021-02-14 19:57

I am trying to pass a string variable inside asp.net MVC. I use breakpoints so I see that it does go to the correct method in the controller, but the variables posted are equal

2条回答
  •  隐瞒了意图╮
    2021-02-14 20:24

    For me it looks like that you set the id not the name. I use MVC3 every day, so i dont reproduce your sample. (I am awake for 20 hours programming ;) but still motivated to help ) Please tell me if it dont work. But for me it looks like you have to set the "name" property ... not the id property. Try that ... i am waiting right now to help you if it does not work.

         
    

提交回复
热议问题