guestbook.aspx

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="guestbook.aspx.cs" Inherits="guestbook" Title="留言板首页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
<div id="right" runat="server" class="right4">
<div id="right_top" runat="server" class="right_top">
    <table cellpadding="0" cellspacing="0" class="style4" style="height: 30px">
        <tr>
            <td>
                留言板</td>
        </tr>
    </table>
    </div>
    <table class="style4" style="width: 100%">
        <tr>
            <td style="width: 441px" >
                主题:<asp:TextBox ID="TextBox1" runat="server" Font-Bold="True" 
                    Font-Size="X-Large" Height="25px" Width="213px"></asp:TextBox><asp:RequiredFieldValidator 
                    ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" 
                    ErrorMessage="*主题必须填写!" Font-Size="Small"></asp:RequiredFieldValidator></td>
            <td >
                选择类别:<asp:DropDownList ID="DropDownList1" runat="server" 
                    DataSourceID="SqlDataSource2" DataTextField="type" DataValueField="id" 
                    Height="30px" style="margin-left: 0px" Width="122px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center" >
                <asp:TextBox ID="TextBox2" runat="server" Height="60px" TextMode="MultiLine" 
                    Width="647px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2" 
                style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                <asp:Button ID="Button1" runat="server" Height="32px" Text="发布留言" 
                    Width="160px" onclick="Button1_Click" />
            </td>
        </tr>
    </table>
    <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1">
        <ItemTemplate>
             <table class="style4">
        <tr>
            <td class="font14_red2" style="height: 40px; width: 317px">
                 主题:<%# Eval("title") %>&nbsp;</td>
            <td class="font14" style="height: 40px">
                类别:<%# Eval("type") %>&nbsp;</td>
            <td class="font14" style="height: 40px">
                <%# Eval("adddate") %>&nbsp;</td>
        </tr>
        <tr>
            <td colspan="3" class="font14" style="height: 80px; ">
                <%# Eval("contents") %>&nbsp;</td>
        </tr>
        <tr>
            <td colspan="3" class="font14_green" style="height: 40px;border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0;">回复内容:<%# Eval("reply") %>
                &nbsp;</td>
        </tr>
后面还有 54 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。