Hi
Below code gives error The name lstState.Items.Count does not exist in the current context
List<string> StateCollection = new List<string>(); if (lstState.Items.Count > 0) {
}
<div class="col-lg-3 col-md-6 col-sm-12"> <div class="form-group"> <label>State</label> <asp:ListBox ID="lstState" runat="server" data-placeholder="Choose State" class="form-control multiselect-full-featured" multiple="multiple" SelectionMode="Multiple" data-fouc=""></asp:ListBox> </div> </div>