How to get multiple values in html listbox control. I have set "Allow Multiple Selections" option enable. What are the syntax? Looking forward to a positive answer.
How to get multiple values in html listbox control. I have set "Allow Multiple Selections" option enable. What are the syntax? Looking forward to a positive answer.
The HotList is a new kind of listbox control that allows you to use HTML for a better looking, more functional presentation in your UI. The HotList displays HTML instead of plain text. Why use boring text-only listboxes when you can have HTML listboxes instead? The HotList is a new invention in user-interface technology that will add style to your UI! Here are some of the features of the HotList : Display any HTML text, including graphics. Complete control over background and text colors, fonts and effects Events for Click, DoubleClick, MouseOver and MouseOut, enabling you to do anything you need to do to customize your listboxes, such as changing the background or text color in the ListItem while it is selected, or even change the HTML for the ListItem. You can also pass mouse click events through to your application code by using the window.external.raiseEvent method.
Download HotList HTML Listbox ActiveX Control 1.6
Code:<html> <body> <form runat="server"> <asp:ListBox id="drop1" rows="4" runat="server"> <asp:ListItem selected="true">Item 1</asp:ListItem> <asp:ListItem>emp1</asp:ListItem> <asp:ListItem>emp2</asp:ListItem> <asp:ListItem>emp3</asp:ListItem> <asp:ListItem>emp4</asp:ListItem> <asp:ListItem>emp5</asp:ListItem> </asp:ListBox> <asp:Button Text="Submit" OnClick="submit" runat="server" /> <p><asp:label id="mess" runat="server" /></p> </form> </body> </html>
Code:<HTML> <HEAD> </HEAD> <form runat="server"> <BR><BR> Select a Color:<BR> <BR><BR> <asp:listbox id="lb1" runat="server" selectionmode="multiple" rows=5> <asp:listitem value="1">Blue1</asp:listitem> <asp:listitem value="2">Red2</asp:listitem> <asp:listitem value="3">Green3</asp:listitem> <asp:listitem value="4" Selected>Purple4</asp:listitem> <asp:listitem value="5">Black5</asp:listitem> <asp:listitem value="6" text="Gold"/> </asp:listbox> </form> </BODY> </HTML>
Bookmarks