📄 checkbox.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="checkbox.aspx.cs" Inherits="_Default" %>
<!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>
<table style="border:solid 1px green;width:50%">
<tr>
<td style="background-color:Green" colspan="2">
<strong><span style="font-size: 14pt; color: #ffffff">
checkbox和checkboxlist控件的应用</span></strong></td>
</tr>
<tr>
<td width="70%" valign="top">
<table width="100%">
<tr>
<td style="text-align: left">
商品一<asp:TextBox ID="TextBox1" runat="server" Width="105px"></asp:TextBox></td>
</tr>
<tr>
<td>
商品二<asp:TextBox ID="TextBox2" runat="server" Width="106px"></asp:TextBox></td>
</tr>
<tr>
<td>
折扣:<asp:CheckBox ID="c1" runat="server" Text="7折" /></td>
</tr>
<tr>
<td>
总和:<asp:Label ID="labresual" runat="server"></asp:Label></td>
</tr>
<tr>
<td>
<asp:Button ID="btnreasual" runat="server" Text="结算" OnClick="btnreasual_Click" /></td>
</tr>
</table>
</td>
<td >
请选择爱号:<asp:CheckBoxList ID="CheckBoxList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="CheckBoxList1_SelectedIndexChanged">
<asp:ListItem>音乐</asp:ListItem>
<asp:ListItem>跳舞</asp:ListItem>
<asp:ListItem>散步</asp:ListItem>
<asp:ListItem>旅游</asp:ListItem>
<asp:ListItem>滑冰</asp:ListItem>
<asp:ListItem>养花</asp:ListItem>
</asp:CheckBoxList>
</td>
</tr>
<tr>
<td colspan="2" >
<asp:Label ID="Label2" runat="server" Visible="False"></asp:Label></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -