applytable.aspx
来自「asp.net专家200问(含源代码解决法案」· ASPX 代码 · 共 33 行
ASPX
33 行
<%@ Page language="c#" Codebehind="ApplyTable.aspx.cs" AutoEventWireup="false" Inherits="ApplyTable.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<body>
<h3><font face="宋体">
<asp:Label id="Label1" runat="server">表的示例</asp:Label></font></h3>
<form runat="server" ID="Form1">
<asp:Table id="Table1" Font-Name="宋体" Font-Size="9pt" CellPadding="5" CellSpacing="0" BorderColor="black" Gridlines="Both" runat="server" />
<p>
<asp:Label id="Label2" runat="server">表行:</asp:Label>
<asp:DropDownList id="DropDown1" runat="server">
<asp:ListItem Value="1">1</asp:ListItem>
<asp:ListItem Value="2">2</asp:ListItem>
<asp:ListItem Value="3">3</asp:ListItem>
<asp:ListItem Value="4">4</asp:ListItem>
</asp:DropDownList>
<br>
<asp:Label id="Label3" runat="server">表单元格:</asp:Label>
<asp:DropDownList id="DropDown2" runat="server">
<asp:ListItem Value="1">1</asp:ListItem>
<asp:ListItem Value="2">2</asp:ListItem>
<asp:ListItem Value="3">3</asp:ListItem>
<asp:ListItem Value="4">4</asp:ListItem>
</asp:DropDownList>
<p>
<asp:button Text="生成表" runat="server" ID="Button1" NAME="Button1" />
</form>
</P>
</body>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?