placeholder.aspx

来自「关于ASP.NET制作程序模块」· ASPX 代码 · 共 39 行

ASPX
39
字号
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="placeholder.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>
    <form id="form1" runat="server">
    <div>
        <table style=" border:solid 1px green;width:30%">
            <tr>
                <td class="td" style="background-color:Green">
                    <span style="font-size: 14pt; color: #ffffff">
                    应用PlaceHolder控件动态创建控件</span></td>
            </tr>
            <tr>
                <td class="td" >
                    <asp:Button ID="createList" runat="server" Text="动态创建ListBox控件" OnClick="createList_Click" /></td>
            </tr>
            <tr>
                <td>
                    <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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