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

📄 msgview.aspx

📁 校友录的总体功能分为三个子功能模块:管理功能模块,用户注册功能模块,用户个性化服务
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MsgView.aspx.cs" Inherits="MsgView" %>

<%@ Register Src="LeadHead.ascx" TagName="LeadHead" TagPrefix="uc1" %>

<!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>
       <script language="javascript" type="text/javascript">
// <!CDATA[

     function MM_preloadImages() { //v3.0          var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();            var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)            if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}        }        function MM_swapImgRestore() { //v3.0          var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;        }        function MM_findObj(n, d) { //v4.01          var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {            d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}          if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];          for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);          if(!x && d.getElementById) x=d.getElementById(n); return x;        }        function MM_swapImage() { //v3.0          var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)           if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}        }
a[i+2];}
        }
function TABLE1_onclick() {

}

// ]]>
</script>
</head>
<body style="text-align: center; background-image: url(PICTURE/back.gif);">
    <form id="form1" runat="server">
        <uc1:LeadHead ID="LeadHead1" runat="server" />
        <br />
        <table border="0" cellpadding="0" cellspacing="0" style="width: 933px; height: 4px;
            background-color: #cfeee4">
            <tr>
                <td style="width: 214px">
                <asp:ImageButton ID="ToSendMsg" runat="server" ImageUrl="~/PICTURE/newthread.gif"
                    OnClick="ToSendMsg_Click" />
                    &nbsp;
                </td>
                <td style="width: 100px">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/PICTURE/liuyan.gif" Height="68px" Width="130px" /></td>
                <td style="vertical-align: bottom; width: 100px; text-align: right">
                    <table id="TABLE1"
                    border="0" cellpadding="0" cellspacing="0" style="width: 235px" onclick="return TABLE1_onclick()">
                    <tr>
                        <td style="width: 55px; height: 26px;">
                            <asp:Image
                    ID="Image3" runat="server" Height="25px" ImageUrl="~/PICTURE/obj_count.gif" Width="67px" /></td>
                        <td style="width: 76px; height: 26px;">
                <asp:Label ID="countlab" runat="server" Height="25px" Text="0" Width="74px" Font-Bold="True" Font-Size="X-Large" ForeColor="#FF8080"></asp:Label></td>
                        <td style="width: 100px; height: 26px;">
                            <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="#0000C0"
                                Height="22px" Text="条记录"></asp:Label></td>
                    </tr>
                </table>
                </td>
            </tr>
        </table>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ChinaRenConnectionString %>"
            SelectCommand="SELECT UserInfo.PicName, MsgInfo.BBSNum, MsgInfo.UserID, MsgInfo.Title, MsgInfo.Content, MsgInfo.SubTime, MsgInfo.AcceptMan FROM UserInfo INNER JOIN MsgInfo ON UserInfo.UserID = MsgInfo.UserID" OnSelected="SqlDataSource1_Selected">
        </asp:SqlDataSource>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" Width="930px" AllowPaging="True" BackColor="#F5FBFF" OnDataBound="GridView1_DataBound" OnRowCommand="GridView1_RowCommand" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowDataBound="GridView1_RowDataBound" OnRowDeleted="GridView1_RowDeleted" >
                        <Columns>
                            <asp:TemplateField HeaderText="用户名" SortExpression="UserID">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Width="109px"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>                                
                                    <table border="0" cellpadding="0" cellspacing="0" style="display: block; vertical-align: top; position: static; width: 115px;">
                                        <tr>
                                            <td style="width: 99px">
                                                <asp:Label ID="BBsNum" runat="server" Text='<%# Eval("BBSNum") %>' Visible="False"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td style="width: 99px">
                                    <asp:Image ID="Image4" runat="server" ImageUrl='<%# Eval("PicName") %>' /></td>
                                        </tr>
                                        <tr>
                                            <td style="width: 99px">
                                                <asp:Image ID="Image5" runat="server" Height="11px" ImageUrl="~/PICTURE/level0.gif"
                                                    Width="96px" /></td>
                                        </tr>
                                        <tr>
                                            <td style="width: 99px">
                                            <div style="float:left;width :120px;filter:glow(color='#A6BA98',strength='2');"><font color="#61b713" face="Verdana"><b>
                                                <asp:Label ID="UserLab" runat="server" Text='<%# Eval("UserID") %>'></asp:Label></b></font></div>
                                  </td>
                                        </tr>
                                      </table>                             
                                 
                                </ItemTemplate>
                                <ItemStyle BorderColor="#C0FFFF" HorizontalAlign="Center" VerticalAlign="Top" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="内容" SortExpression="Title">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Title") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <table border="0" cellpadding="0" cellspacing="0" style="width: 572px">
                                        <tr>
                                            <td style="width: 1163px; height: 19px; text-align: left; background-color: #b8e4ef;">
                                                &nbsp;<asp:Image ID="Image6" runat="server" ImageUrl="~/PICTURE/face1.gif" />
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("Title") %>' Font-Bold="True" Font-Size="Large" ForeColor="Blue"></asp:Label>
                                                <asp:Label ID="Accept" runat="server" Text='<%# Eval("AcceptMan") %>' Visible="False"></asp:Label></td>
                                            <td style="width: 100px; height: 19px; text-align: right; background-color: #b8e4ef;">
                                                &nbsp;<asp:Label ID="Label3" runat="server" Text='<%# Eval("SubTime") %>' Font-Bold="True"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" style="width: 100px; height: 38px;">
                                                  <div style="text-align: center">
           <center style="word-break:break-all; word-wrap:break-word; display: block; position: static; ">
                  
                       <table border="0" cellpadding="0" cellspacing="0" style="width: 96px">
                           <tr>
                               <td style="width: 100px; text-align: left">
                                
                     <span id="PreView" style="width: 400px;  vertical-align: top; text-align: left;">
                 <asp:Label ID="ViewLab" runat="server" Width="698px"  Text='<%# UToH(Eval("Content") ) %>' /></span> 
                                                 
                                   </td>
                           </tr>
                       </table>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                                <ItemStyle BorderColor="#C0FFFF" HorizontalAlign="Center" VerticalAlign="Top" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="留言" ShowHeader="False">
                                <ItemTemplate>
                                    <asp:ImageButton ID="Msgsend" runat="server" Height="31px" ImageUrl="~/PICTURE/message.gif" CommandName="smsg" />
                                </ItemTemplate>
                                <ItemStyle BorderColor="#C0FFFF" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="删除" ShowHeader="False">
                                <ItemTemplate>
                                    <asp:ImageButton ID="DelBtn" runat="server" CommandName="DelMsg" ImageUrl="~/PICTURE/m_delete.gif" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerSettings Position="TopAndBottom" FirstPageText="[首页]" LastPageText="[末页]" Mode="NextPreviousFirstLast" NextPageText="[下一页]" PreviousPageText="[上一页]" />
                        <HeaderStyle BackColor="#BCDDFF" Font-Names="华文行楷" Font-Size="X-Large" ForeColor="#C000C0" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
        &nbsp;<asp:Image ID="Image4" runat="server" Height="42px" ImageUrl="~/PICTURE/line.bmp"
            Width="931px" /><asp:Label ID="Label8" runat="server" BackColor="#BCDDFF" Height="44px"
                Text="校友通讯录" Width="929px"></asp:Label>&nbsp;
    </form>
</body>
</html>

⌨️ 快捷键说明

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