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

📄 messages.aspx

📁 .net的一个很经典很普通的实例
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Messages.aspx.cs" Inherits="Messages" %>

<!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">
<link rel="shortcut icon" href="/MovieShow/Images/Real-doc.ico" type="image/x-icon" />
    <title>MovieShow--留言版</title>
    <script language="javascript" type="text/javascript">
    function clean()
    {
      document.getElementById("TextBox1").value="";
      document.getElementById("TextBox2").value="";
    
    }
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div style=" background-image:url(/MovieShow/Images/message.jpg); width: 1000px; position: absolute;
            height: 760px; z-index: 102; left: 0px; top: 0px;">
            
            <asp:Button ID="Button1" runat="server" Style="z-index: 100; left: 84px; position: absolute;
                top: 832px" Text="发送" Width="52px" Font-Bold="True" OnClick="Button1_Click" />
            <div style="z-index: 116; left: 369px; width: 488px; position: absolute; top: 92px;
                height: 100px">
                <asp:DataList ID="DataList1" runat="server" Style="position: static" ShowFooter="False" ShowHeader="False" OnDataBinding="DataList1_DataBinding" OnItemDataBound="DataList1_ItemDataBound">
                    <ItemTemplate>
                        <div style=" background-image:url(/MovieShow/Images/messageHead.jpg);width: 488px; position: static; height: 36px; font-size: 12px; vertical-align: middle; color: #808080; text-align: justify;">
                            <asp:Label ID="Label5" runat="server" Height="20px" Style="position: static" Width="40px"></asp:Label>
                            <asp:Label ID="Label3" runat="server" Style="position: static" Text="留言者:"
                                Width="48px"></asp:Label>
                            <asp:Label ID="Label1" runat="server" Style="position: static"
                                Text='<%# DataBinder.Eval(Container.DataItem,"name") %>'  Width="36px"></asp:Label>
                            <asp:Label ID="Label6" runat="server" Style="position: static" Width="190px"></asp:Label>
                            <asp:Label ID="Label4" runat="server" Style="position: static"
                                Text="留言时间:"></asp:Label>
                            <asp:Label ID="Label2" runat="server" Style="position: static"
                                Text='<%# DataBinder.Eval(Container.DataItem,"time") %>'></asp:Label></div>
                        &nbsp;
                        <asp:Label ID="Label7" runat="server" Style="position: static" Text='<%# DataBinder.Eval(Container.DataItem,"message") %>'></asp:Label>&nbsp;<div
                            style="width: 80px; position: static; height: 80px" id="DIV1" runat="server">
                            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" style="width: 80px; height: 80px">
    <param name="movie" value='<%# DataBinder.Eval(Container.DataItem,"face") %>' />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src='<%# DataBinder.Eval(Container.DataItem,"time") %>' width="820" height="150" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>
                        </div>
                        <br />
                    </ItemTemplate>
                    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Size="12px"
                        Font-Strikeout="False" Font-Underline="False" Wrap="True" />
                </asp:DataList></div>
            <asp:Label ID="Label9" runat="server" Font-Bold="True" Font-Size="Small" Style="z-index: 101;
                left: 0px; position: absolute; top: 592px" Text="昵称:" Width="52px"></asp:Label>
            <asp:TextBox ID="TextBox1" runat="server" Style="z-index: 102; left: 72px; position: absolute;
                top: 588px" Width="252px"></asp:TextBox>
            <asp:Label ID="Label10" runat="server" Font-Bold="True" Font-Size="Smaller" Style="z-index: 103;
                left: -2px; position: absolute; top: 632px" Text="评论内容:"></asp:Label>
            <asp:TextBox ID="TextBox2" runat="server" Height="160px" Style="z-index: 104; left: 72px;
                position: absolute; top: 632px" TextMode="MultiLine" Width="252px"></asp:TextBox>
            <asp:Button ID="Button2" runat="server" Font-Bold="True" Font-Size="Smaller" OnClick="Button2_Click"
                Style="z-index: 105; left: 216px; position: absolute; top: 832px" Text="重置" Width="56px" />
            <asp:Label ID="Label8" runat="server" Font-Bold="True" Font-Size="Smaller" Style="z-index: 106;
                left: 0px; position: absolute; top: 536px" Text="表情:" Width="44px"></asp:Label>
            <div style="z-index: 117; left: 52px; width: 312px; position: absolute; top: 524px;
                height: 36px">
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" style="width: 32px; height: 32px">
    <param name="movie" value="/MovieShow/face/1.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="/MovieShow/face/1.swf" width="820" height="150" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>            
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" style="width: 32px; height: 32px">
    <param name="movie" value="/MovieShow/face/2.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="/MovieShow/face/2.swf" width="820" height="150" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" style="width: 32px; height: 32px">
    <param name="movie" value="/MovieShow/face/3.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="/MovieShow/face/3.swf" width="820" height="150" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" style="width: 32px; height: 32px">
    <param name="movie" value="/MovieShow/face/4.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="/MovieShow/face/4.swf" width="820" height="150" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" style="width: 32px; height: 32px">
    <param name="movie" value="/MovieShow/face/5.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="/MovieShow/face/5.swf" width="820" height="150" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" style="width: 32px; height: 32px">
    <param name="movie" value="/MovieShow/face/6.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="/MovieShow/face/6.swf" width="820" height="150" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" style="width: 32px; height: 32px">
    <param name="movie" value="/MovieShow/face/7.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="/MovieShow/face/7.swf" width="820" height="150" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" style="width: 32px; height: 32px">
    <param name="movie" value="/MovieShow/face/8.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="/MovieShow/face/8.swf" width="820" height="150" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>
            </div>
            <asp:RadioButton ID="b1" runat="server" Style="z-index: 107; left: 56px;
                position: absolute; top: 560px" Width="16px" Font-Size="XX-Small" GroupName="1" Height="20px" /><asp:RadioButton ID="b2" runat="server" Style="z-index: 108; left: 88px;
                position: absolute; top: 560px" Width="16px" Font-Size="XX-Small" GroupName="1" Height="20px" />
            <asp:RadioButton ID="b3" runat="server" Style="z-index: 109; left: 120px;
                position: absolute; top: 560px" Width="16px" Font-Size="XX-Small" GroupName="1" Height="20px" />
            <asp:RadioButton ID="b4" runat="server" Style="z-index: 110; left: 152px;
                position: absolute; top: 560px" Width="16px" Font-Size="XX-Small" GroupName="1" Height="20px" />
            <asp:RadioButton ID="b5" runat="server" Style="z-index: 111; left: 184px;
                position: absolute; top: 560px" Width="16px" Font-Size="XX-Small" GroupName="1" Height="20px" />
            <asp:RadioButton ID="b6" runat="server" Style="z-index: 112; left: 216px;
                position: absolute; top: 560px" Width="16px" Font-Size="XX-Small" GroupName="1" Height="20px" />
            <asp:RadioButton ID="b7" runat="server" Style="z-index: 113; left: 248px;
                position: absolute; top: 560px" Width="16px" Font-Size="XX-Small" GroupName="1" Height="20px" />
            <asp:RadioButton ID="b8" runat="server" Style="z-index: 114; left: 276px;
                position: absolute; top: 560px" Width="16px" Font-Size="XX-Small" GroupName="1" Height="20px" />
            <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Font-Size="Smaller"
                NavigateUrl="~/Default.aspx" Style="z-index: 118; left: 68px; position: absolute;
                top: 28px">返回首页</asp:HyperLink>
         
        </div>
    
    </form>
</body>
</html>

⌨️ 快捷键说明

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