asp.net mvc radio button state

后端 未结 7 1887
轮回少年
轮回少年 2021-02-07 19:06

I\'m trying out asp.net mvc for a new project, and I ran across something odd. When I use the MVC UI helpers for textboxes, the values get persisted between calls. But, when I

7条回答
  •  [愿得一人]
    2021-02-07 19:20

    I'm using vs2010 now, it works like:

    <%=Html.RadioButton("ProviderType","1",Model.ProviderType==1)%> 
    

    looks better?

提交回复
热议问题