html-helper


Converting C# Razor view syntax for checkboxlist into VB.Net


Here is the HTML code for "CheckBoxListFor" which I copied from "http://www.codeproject.com/Articles/292050/CheckBoxList-For-a-missing-MVC-extension" Could you please help me out in converting this C# code into VB.Net?
#Html.CheckBoxListFor(model => model.PostedCities.CityIDs,
model => model.AvailableCities,
entity => entity.Id,
entity => entity.Name,
model => model.SelectedCities)
#Html.CheckBoxListFor(Function(model) model.PostedCities.CityIDs, _
Function(model) model.AvailableCities, _
Function(entity) entity.Id, _
Function(entity) entity.Name, _
Function(model) model.SelectedCities)
#Html.CheckBoxListFor(Function(model) model.PostedCities.CityIDs, _
Function(model) model.AvailableCities, _
Function(entity) entity.Id, _
Function(entity) entity.Name, _
Function(entity) If(Model.SelectedCities Is Nothing, False, Model.SelectedCities.Contains(entity.Id)),
htmlListInfo, Function(htmlAttribute) New With {.class = "chkBoxList"})

Related Links

Equivalent for MvcHtmlString in ASP.NET 5?
How can i resize image in html-helper tagbuilder
TextBoxFor title to display the current text
Converting C# Razor view syntax for checkboxlist into VB.Net
Table of content is not proper in chm file
Web helpers for MVC 5?
asp.net mvc3 or mvc4 html helper is not working
Configure the Javascript function + Html Helper
Displaying multiple values with Telerik ASP.Net MVC extensions with the ForeignKey column
Custom html helpers in MVC 4
Return multiple checkbox from Custom html helper in mvc 3r
Getting Class Property Values from Linq Expression In Html Helper MVC3
format htmlhelper date field to dd/mm/yyyyy
How to create internal Linking inside CHM help file
simple_html_dom timer?
Printing Html with razor view engine

Categories

HOME
testing
multithreading
date
comparison
objectgears
q
google-docs
setup-deployment
twitter-bootstrap-4
v8
gps
networkx
podio
vault
quicklook
windows-phone-7
flask-wtforms
circuit
designer
caml
after-effects
openrefine
highlight.js
ef-migrations
invantive-sql
normalizr
text-rendering
django-cms
reverse-proxy
autocad-plugin
kryo
css-animations
hammerspoon
icloud-api
microsoft-sync-framework
fluentvalidation
assistant
compatibility
c++-amp
newline
xquery-3.0
gtrendsr
copying
commit
gammu
file-format
neuroscience
hilbert-curve
firebase-admin
nand2tetris
keydown
gpx
skeleton-css-boilerplate
osx-mavericks
pango
dotnetzip
tizen-native-app
diagnostics
akka-cluster
django-scheduler
crosswalk-runtime
mediaelement
setuptools
color-picker
thrust
ctest
autorest
holder.js
nsviewcontroller
apachebench
endeca-workbench
pundit
tarjans-algorithm
rgeo
apache-commons-fileupload
createprocessasuser
formatjs
terminfo
phpthumb
bundles
datagridviewcolumn
balanced-payments
app42
http-unit
venn-diagram
dbproviderfactories
appconkit
custom-backend
horizontal-accordion
recent-documents
cxxtest
gamma
substrings
sef
phonon
3gp

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App