File: web_listbox.aspx

package info (click to toggle)
xsp 4.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 5,168 kB
  • ctags: 2,422
  • sloc: cs: 13,500; sh: 12,082; xml: 8,279; makefile: 650; perl: 619; ansic: 299; php: 6
file content (42 lines) | stat: -rw-r--r-- 1,225 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<%@ Page language="C#" %>
<%@ Register TagPrefix="mono" TagName="MonoSamplesHeader" src="~/controls/MonoSamplesHeader.ascx" %>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/mono-xsp.css">
<title>ListBox</title>
</head>
<body><mono:MonoSamplesHeader runat="server"/>
<form runat="server">
Single selection:
<p>
<asp:ListBox id="lbs" rows="5" SelectionMode="single" Width="80px" runat="server">
	<asp:ListItem>1</asp:ListItem>
	<asp:ListItem>2</asp:ListItem>
	<asp:ListItem>3</asp:ListItem>
	<asp:ListItem>4</asp:ListItem> 
	<asp:ListItem>5</asp:ListItem> 
	<asp:ListItem>6</asp:ListItem>
	<asp:ListItem>7</asp:ListItem>
	<asp:ListItem>8</asp:ListItem>
	<asp:ListItem>9</asp:ListItem> 
	<asp:ListItem>10</asp:ListItem> 
</asp:ListBox>
<p>
Multiple selection:
<p>
<asp:ListBox id="lbm" rows="5" SelectionMode="Multiple" Width="80px" runat="server">
	<asp:ListItem>1</asp:ListItem>
	<asp:ListItem>2</asp:ListItem>
	<asp:ListItem>3</asp:ListItem>
	<asp:ListItem>4</asp:ListItem> 
	<asp:ListItem>5</asp:ListItem> 
	<asp:ListItem>6</asp:ListItem>
	<asp:ListItem>7</asp:ListItem>
	<asp:ListItem>8</asp:ListItem>
	<asp:ListItem>9</asp:ListItem> 
	<asp:ListItem>10</asp:ListItem> 
</asp:ListBox>
</form>
</body>
</html>