MessageBoard.aspx

(完整代码) 2KB

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MessageBoard.aspx.cs" Inherits="MessageBoard" %>

<!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>
</head>
<body background="images/1.jpg">
    <form id="form1" runat="server">
    <div align="center">
        <br />
        [留言板]<br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="tz_NoteID" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="tz_NoteID" HeaderText="编号" InsertVisible="False"
                    ReadOnly="True" SortExpression="tz_NoteID" />
                <asp:BoundField DataField="tz_Heading" HeaderText="主题" SortExpression="tz_Heading" />
                <asp:BoundField DataField="hy_Username" HeaderText="发表人" SortExpression="hy_Username" />
                <asp:BoundField DataField="tz_Time" HeaderText="时间" SortExpression="tz_Time" />
                <asp:HyperLinkField DataNavigateUrlFields="tz_NoteID" DataNavigateUrlFormatString="MessageDetail.aspx?id={0}" HeaderText="详细" Text="详细" />

            </Columns>
        </asp:GridView>
        <br />
        &nbsp;<br />
    
    
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SMDBConnectionString %>"
            SelectCommand="SELECT T_bbsNote.tz_NoteID, T_bbsNote.tz_Heading, T_Vip.hy_Username, T_bbsNote.tz_Time FROM T_bbsNote INNER JOIN T_Vip ON T_bbsNote.hy_VipID = T_Vip.hy_VipID">
        </asp:SqlDataSource>
        <br />
        <asp:Label ID="Label1" runat="server" Text="主题:"></asp:Label>&nbsp;
        <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox><br />
        <br />
        <asp:Label ID="Label2" runat="server" Text="内容:"></asp:Label>&nbsp;
        <asp:TextBox ID="txtContent" runat="server" Height="96px" TextMode="MultiLine" Width="368px"></asp:TextBox><br />
        <br />
        &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<asp:Button ID="Button1"
            runat="server" OnClick="Button1_Click" Text="发表留言" />
            </div>
    </form>
</body>
</html>

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

AI 解读 AI

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

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