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

📄 add.aspx

📁 漂亮的留言管理系统
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="add.aspx.cs" Inherits="add" %>

<%@ Register Src="Controls/header.ascx" TagName="header" TagPrefix="uc1" %>
<%@ Register Src="Controls/footer.ascx" TagName="footer" TagPrefix="uc2" %>

<!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>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <link href="../style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="0" cellpadding="0" cellspacing="0" style="width: 760px; position: relative;
            text-align: center">
            <tr>
                <td>
                    <uc1:header ID="Header1" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="height: 476px">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; position: relative;
                        height: 94%; border-right: activeborder 1px solid; border-top: activeborder 1px solid; left: 0px; border-left: activeborder 1px solid; border-bottom: activeborder 1px solid; top: 0px;">
                        <tr>
                            <td colspan="2" style="font-weight: bold; color: red; height: 32px" align="left">
                                &nbsp;&nbsp;发表新留言</td>
                        </tr>
                        <tr>
                            <td style="width: 111px; text-align: right; height: 29px;">
                                &nbsp;用户名:</td>
                            <td style="text-align: left; height: 29px;">
                                <asp:TextBox ID="txtUserName" runat="server" Style="position: relative"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 111px; text-align: right; height: 29px;">
                                个人主页:</td>
                            <td style="text-align: left; height: 29px;">
                                <asp:TextBox ID="txtUrl" runat="server" Style="position: relative"></asp:TextBox>
                                (如有自己的网站,请填写网站的网址,格式:http://www.xxx.com)</td>
                        </tr>
                        <tr>
                            <td style="width: 111px; text-align: right">
                                性别:</td>
                            <td style="text-align: left" height="29">
                                <asp:RadioButton ID="rbtnNv" runat="server"
                                    Checked="True" GroupName="sex" Style="position: relative" Text="女" />
                                <asp:RadioButton ID="rbtnNan" runat="server"
                                    GroupName="sex" Style="position: relative" Text="男" /></td>
                        </tr>
                        <tr>
                            <td style="width: 111px; text-align: right; height: 29px;">
                                Email:</td>
                            <td style="text-align: left; height: 29px;">
                                <asp:TextBox ID="txtEmail" runat="server" Style="position: relative"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 111px; height: 15px; text-align: right">
                                QQ:</td>
                            <td style="text-align: left" height="29">
                                <asp:TextBox ID="txtQq" runat="server" Style="position: relative"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 111px; height: 110px; text-align: right">
                                头像:</td>
                            <td style="height: 110px; text-align: left" valign="middle">
                                <asp:DropDownList ID="ddlPic" runat="server" Style="position: relative; top: 0px;" AutoPostBack="True" OnSelectedIndexChanged="ddlPic_SelectedIndexChanged">
                                </asp:DropDownList>
                                <asp:Image ID="Image1" runat="server" Style="position: relative; left: 0px;" /></td>
                        </tr>
                        <tr>
                            <td style="width: 111px; text-align: right" valign="top">
                                留言内容:</td>
                            <td style="text-align: left">
                                <asp:TextBox ID="txtContent" runat="server" Height="140px" Style="position: relative"
                                    TextMode="MultiLine" Width="380px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 111px; height: 32px; text-align: right" valign="top">
                            </td>
                            <td style="height: 32px; text-align: left">
                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                                <asp:Button ID="Button1" runat="server" Style="position: relative" Text="提交" OnClick="Button1_Click" Width="51px" />
                                &nbsp; &nbsp;
                                <asp:Button ID="Button2" runat="server" Style="position: relative" Text="清空" OnClick="Button2_Click" Width="52px" /></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="height: 143px">
                    <uc2:footer ID="Footer1" runat="server" />
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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