test2.aspx
来自「互联网程序设计的课程」· ASPX 代码 · 共 46 行
ASPX
46 行
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test2.aspx.cs" Inherits="backup_test2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div id="content"align="center">
<table style="width: 302px; height: 283px">
<tr>
<td align="center" colspan="9" style="height: 14px; text-align: center">
多选框测试:</td>
</tr>
<tr>
<td align="center" colspan="9" style="height: 2px; text-align: center" valign="middle">
您选择了:<asp:Label ID="Labeljg" runat="server" Text=" "></asp:Label></td>
</tr>
<tr>
<td align="center" colspan="1" style="width: 172px; height: 2px; text-align: center" valign="middle">
</td>
<td align="center" colspan="5" style="width: 4442px; height: 2px; text-align: center" valign="middle">
<asp:CheckBoxList ID="CheckBoxList1" runat="server">
<asp:ListItem Value="1">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 Value="7">7</asp:ListItem>
</asp:CheckBoxList></td>
<td align="center" colspan="1" style="width: 665px; height: 2px; text-align: center" valign="middle">
<asp:Button ID="Button1" runat="server" Text="确定" OnClick="Button1_Click" /> </td>
<td align="center" colspan="1" style="width: 165px; height: 2px; text-align: center" valign="middle">
</td>
<td align="center" colspan="1" style="width: 3px; height: 2px; text-align: center" valign="middle">
</td>
</tr>
</table></div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?