Hi,
Actually normal html code doesn't support checked list box. So ur need is not get by normal condition.
Please try this.
in controller
Function CheckBox() As ActionResult
Dim strCheckBoxGroup As String
strCheckBoxGroup = "<table border='1'> "
For x As Integer = 1 To 10
strCheckBoxGroup = strCheckBoxGroup + " <tr> "
strCheckBoxGroup = strCheckBoxGroup + " <td> "
strCheckBoxGroup = strCheckBoxGroup + " <input id='" + x.ToString + "' name='" + x.ToString + "' type='checkbox' value='true' />"
strCheckBoxGroup = strCheckBoxGroup + x.ToString + " Description "
strCheckBoxGroup = strCheckBoxGroup + " </td> "
strCheckBoxGroup = strCheckBoxGroup + " </tr> "
Next
strCheckBoxGroup = strCheckBoxGroup + " </table>"
ViewData("chkBox") = New HtmlString(strCheckBoxGroup)
Return View(ViewData("chkBox"))
End Function
In View
<body>
<%
Html.BeginForm()
If True Then
%>
<div>
<%: ViewData("chkBox")%>
</div>
<% End If%>
</body>