FineUI/FineUI.Examples/dropdownlist/dropdownlist.aspx

46 lines
2.3 KiB
Plaintext
Raw Normal View History

2015-05-19 14:45:47 +08:00
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="dropdownlist.aspx.cs" Inherits="FineUI.Examples.dropdownlist.dropdownlist" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title></title>
2016-01-10 01:15:27 -05:00
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
2015-05-19 14:45:47 +08:00
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" />
<f:SimpleForm ID="SimpleForm1" BodyPadding="5px" runat="server" Width="550px" EnableCollapse="true"
ShowBorder="True" Title="简单表单" ShowHeader="True">
<Items>
2016-01-10 01:15:27 -05:00
<f:DropDownList runat="server" ID="DropDownList1" FocusOnPageLoad="true">
2015-05-19 14:45:47 +08:00
<f:ListItem Text="可选项1" Value="Value1" Selected="true" />
<f:ListItem Text="可选项2不可选择" Value="Value2" EnableSelect="false" />
<f:ListItem Text="可选项3不可选择" Value="Value3" EnableSelect="false" />
<f:ListItem Text="可选项4" Value="Value4" />
<f:ListItem Text="可选项5" Value="Value5" />
<f:ListItem Text="可选项6" Value="Value6" />
<f:ListItem Text="可选择项7" Value="Value7" />
<f:ListItem Text="可选择项8" Value="Value8" />
<f:ListItem Text="普通型1 < L > 1.5" Value="普通型1 < L > 1.5" />
<f:ListItem Text="一个很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的可选择项" Value="Value11" />
</f:DropDownList>
2016-01-10 01:15:27 -05:00
<f:Button ID="btnSelectItem6" Text="选中[可选项6]" runat="server" OnClick="btnSelectItem6_Click"
2015-05-19 14:45:47 +08:00
CssClass="marginr">
</f:Button>
<f:Button ID="btnGetSelection" Text="获取此下拉列表的选中项" runat="server" OnClick="btnGetSelection_Click">
</f:Button>
</Items>
</f:SimpleForm>
<br />
<f:Label runat="server" ID="labResult">
</f:Label>
2016-01-10 01:15:27 -05:00
<br />
<br />
注:页面加载完毕后,下拉列表默认获取焦点。
2015-05-19 14:45:47 +08:00
</form>
</body>
</html>