⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 table.aspx

📁 关于ASP.NET制作程序模块
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="table.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>
    <style type="text/css">
        .td
        {
            border-bottom:dotted 1px #dcdcdc;
        }
    </style>
</head>
<body style="font-size:12px">
    <form id="form1" runat="server">
    <div>
        <table style="width: 40%; border:solid 1px green; ">
            <tr>
                <td class="td" style="background-color:Green">
                    <strong><span style="font-size: 14pt; color: #ffffff;">动态创建数据表(Table)</span></strong></td>
            </tr>
            <tr>
                <td class="td">
                    表行: &nbsp; &nbsp;&nbsp; &nbsp;
                    <asp:DropDownList ID="DropDownList1" 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:DropDownList></td>
            </tr>
            <tr>
                <td class="td">
                    表单元格:<asp:DropDownList ID="DropDownList2" 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:DropDownList></td>
            </tr>
            <tr>
                <td class="td">
                    <asp:Button ID="Button1" runat="server" Text="生成数据表" OnClick="Button1_Click" /></td>
            </tr>
            <tr>
                <td >
                    <asp:Table ID="Table1" CellPadding="0" CellSpacing="0" Width="100%" GridLines="Both"  CssClass="td" runat="server">
                    </asp:Table>
                    </td>
            </tr>
        </table>
    
    </div> 
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -