Listbox "restricted" selection

  • Thread starter Thread starter VK
  • Start date Start date
V

VK

Hello:

I have a control listed as:
<asp:ListBox id="ddlList" runat="server"
SelectionMode="Multiple"></asp:ListBox>

- this list is dynamic. We would like users to select
4 choices. Is there a way to write this within this control or do we
have to write javascript to control the number of choices made? Or any
other ideas are welcome!

Many thanks
 
Javascript is the only way...

<VK> wrote in message Hello:

I have a control listed as:
<asp:ListBox id="ddlList" runat="server"
SelectionMode="Multiple"></asp:ListBox>

- this list is dynamic. We would like users to select
4 choices. Is there a way to write this within this control or do we
have to write javascript to control the number of choices made? Or any
other ideas are welcome!

Many thanks
 
Back
Top