amir
amir

Reputation: 31

checkbox list example in mvc3 Razor,

I am converting my application in razor template,i used the Html.CheckBoxlist in one of my views. Please suggest me how can I achieve this in razor

Here is my code:

@Html.CheckBoxlist("abc", Model.CheckBoxListItems)

Upvotes: 3

Views: 9519

Answers (1)

Ilya Dvorovoy
Ilya Dvorovoy

Reputation: 414

Razor is simply a view engine it has nothing to do with the methods you call. If you have such an html helper method, it should work with @Html.CheckBoxlist(parameters)

Upvotes: 1

Related Questions