RadioButton

 

@Html.RadioButton("color","red")
@Html.RadioButton("color", "blue", true)
@Html.RadioButton("color", "green")

 或者:

@Html.RadioButtonFor(m => m.GenreId, "1") Rock
@Html.RadioButtonFor(m => m.GenreId, "2") Jazz
@Html.RadioButtonFor(m => m.GenreId, "3") Pop

 

posted on 2013-02-06 17:56  fishyk  阅读(91)  评论(0)    收藏  举报

导航