MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
'Calling function code - ddHTML has been initialized as a StringBuilder which contains all dropdown options with nothing selected. Then... For Each ct In CaseTypes i += 1 sbHTML.AppendLine("<tr class='item' idxitem='" & i.ToString & "'><td><select class='casetypename' name='casetypename' style='width:150px;' disabled='disabled'>" & CaseTypeListSelectHTML(ddHTML, ct.CaseTypeName) & "</select></td></tr>") Next 'Function definition Private Function CaseTypeListSelectHTML(ByVal sbHTML As StringBuilder, Optional ByVal selected As String = "") As String 'Select the one selected If selected.Length > 0 Then sbHTML.Replace("<option value='" & selected & "'>", "<option value='" & selected & "' selected='selected'>") End If Return sbHTML.ToString End Function '
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.