drop down menu - asp.net setting dropdown selected value returns error -
drop down menu - asp.net setting dropdown selected value returns error -
good morning,
i having problem setting selected value of dropdownlist in asp.net saved record on mssql 2008 server.
to elaborate more dropdown contains list of countries after selecting desired country insert on mssql 2008 server made edit record page doing pulling record mssql 2008 server , setting selected value of dropdown here code:
dim rogue new transactionaldatacontext dim toupdate = rogue.tbl_personal_informations.where(function(update) update.pid = request.querystring("pid").tostring).singleordefault ciz.items.findbyvalue(toupdate.citizenship.tolower).selected = true
omitted code long
now playing dropdown if info pulled mssql server first item on dropdown list works out error take chinese list whicj 20th on list returns error dropdownlist cannot set selectedvalue
it bid odd when @ out of sorts.
a little help do.
thank you.
the solution found clear first selection before setting selected value code below:
dropdownlist.clearselection()
asp.net drop-down-menu
Comments
Post a Comment