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

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
How to set the default page for a .CHM file in HTML Help Workshop?

Categories

HOME
google-chrome-extension
cloud
wso2
cookies
c#-4.0
relative-path
android-4.4-kitkat
razor
google-oauth
jpeg
survey
disassembler
enterprise-library-5
append
medical
resize
vb.net-2010
task
iron-router
designer
viewport
physics-engine
pass-by-reference
cultureinfo
angular2-aot
shopware
javacv
centos6.5
apache-commons-io
fgetcsv
typo3-6.2.x
dbclient
skia
stormpath
amazon-kinesis-kpl
mmenu
web-mining
elasticsearch-plugin
graphenedb
firebase-admin
password-encryption
total-commander
acoustics
avconv
fault
azure-application-gateway
apache-fop
revapi
errordocument
ionicons
blogengine.net
tizen-native-app
nativeapplication
qtwebview
spring-mongodb
account-kit
mediaelement
spring-android
database-optimization
skobbler-maps
lttng
livequery
nessus
tcpserver
vhd
icu4j
fouc
android-listview
sonarqube5.1.2
sorl-thumbnail
ng-animate
cdt
fpml
gulp-less
terminfo
phpthumb
doskey
marmalade
inbox
dbconnection
dataservice
jelly
parametric-equations
online-compilation
bubble-chart
windows-phone-7.1.1
code-cleanup
transactionscope
window-management
zpt
vdsp
f#-powerpack
invite
yetanotherforum
suppress
gin
swing-app-framework
privilege
grid-system
lzh

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App