I am trying to execute the code below to list the select item in a checkbox
to the body of the mail
Dim CheckedValues As String
For Each item In txt_panview0_ddinput1.Items
If item.checked Then
checkedValues = checkedValues & item.selectedValue
End If
Next
If Not String.IsNullOrEmpty(checkedValues) Then
checkedValues = checkedValues.Substring(1)
End If
tempCollector = tempCollector + "<br>" + "Area Name" + ": " + checkedValues
But i am getting the following error ..
System.MissingMemberException: Public member 'checked' on type 'ListItem' not found.
at Microsoft.VisualBasic.CompilerServices.Symbols.Container.GetMembers(String& MemberName,
Boolean ReportErrors) at Microsoft.VisualBasic.CompilerServices.NewLateBinding.
LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[]
TypeArguments, Boolean[] CopyBack) at WebApplication1._Default.collectEmailBodyText()
in C:\UseFormCode\UseFormEnhWorking\Default.aspx.vb:line 271
Please help