forum2.aspx
上传用户:yiyuerguo
上传日期:2014-09-27
资源大小:3781k
文件大小:4k
源码类别:

C#编程

开发平台:

Others

  1. <%@ Page language="c#" Codebehind="forum2.aspx.cs" AutoEventWireup="false" Inherits="mbord5.forum2" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
  3. <HTML>
  4. <HEAD>
  5. <title>WebForm1</title>
  6. <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
  7. <meta content="C#" name="CODE_LANGUAGE">
  8. <meta content="JavaScript" name="vs_defaultClientScript">
  9. <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  10. </HEAD>
  11. <body MS_POSITIONING="GridLayout">
  12. <form id="Form1" method="post" runat="server">
  13. <asp:label id="errmess" style="Z-INDEX: 101; LEFT: 48px; COLOR: #ff0000; POSITION: absolute; TOP: 344px"
  14. runat="server" text=""></asp:label>
  15. <!-- 设置 DataGrid  --><asp:datagrid id="DataGrid1" runat="server" PagerStyle-Mode="NumericPages" Headerstyle-BackColor="#AAAADD"
  16. AlternatingItemStyle-BackColor="#FFFFCD" AllowPaging="True" Width="440px" Font-Name="Verdana" Font-Size="8pt" autogeneratecolumns="False"
  17. BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="3" GridLines="Horizontal"
  18. Font-Names="Verdana" Height="296px" PageSize="3" ShowFooter="True">
  19. <SelectedItemStyle Font-Bold="True" ForeColor="#F7F7F7" BackColor="#738A9C"></SelectedItemStyle>
  20. <AlternatingItemStyle BackColor="#F7F7F7"></AlternatingItemStyle>
  21. <ItemStyle ForeColor="#4A3C8C" BackColor="#E7E7FF"></ItemStyle>
  22. <HeaderStyle Font-Bold="True" ForeColor="#F7F7F7" BackColor="#4A3C8C"></HeaderStyle>
  23. <FooterStyle ForeColor="#4A3C8C" BackColor="#B5C7DE"></FooterStyle>
  24. <Columns>
  25. <asp:HyperLinkColumn DataNavigateUrlField="postid" DataNavigateUrlFormatString="reply2.aspx?postid={0}"
  26. DataTextField="subject" HeaderText="标题"></asp:HyperLinkColumn>
  27. <asp:BoundColumn DataField="name" HeaderText="作者">
  28. <ItemStyle Width="10%"></ItemStyle>
  29. </asp:BoundColumn>
  30. <asp:BoundColumn DataField="replies" HeaderText="回复">
  31. <ItemStyle Width="30%"></ItemStyle>
  32. </asp:BoundColumn>
  33. <asp:BoundColumn DataField="views" HeaderText="点击次数">
  34. <ItemStyle Width="15%"></ItemStyle>
  35. </asp:BoundColumn>
  36. <asp:BoundColumn DataField="date" HeaderText="发表日期">
  37. <ItemStyle Width="25%"></ItemStyle>
  38. </asp:BoundColumn>
  39. </Columns>
  40. <PagerStyle HorizontalAlign="Right" ForeColor="#4A3C8C" BackColor="#E7E7FF" Mode="NumericPages"></PagerStyle>
  41. </asp:datagrid><asp:label class="fodark" id="Label1" style="Z-INDEX: 102; LEFT: 72px; POSITION: absolute; TOP: 0px"
  42. runat="server" text="<font color=#00000 >欢迎访问本站讨论区,您可以发表您的看法!</font>" NAME="Label1"></asp:label><asp:label class="fodark" id="Label2" style="Z-INDEX: 103; LEFT: 184px; POSITION: absolute; TOP: 344px"
  43. runat="server" text="<font color=#00000 >发表留言</font>" NAME="Label2" Height="10px"></asp:label>
  44. <TABLE id="Table1" style="Z-INDEX: 104; LEFT: 8px; WIDTH: 441px; POSITION: absolute; TOP: 384px; HEIGHT: 382px"
  45. borderColor="#ffffff" width="441" align="center" bgColor="#bec9e4" border="0">
  46. <TR>
  47. <TD class="fohead" bgColor="#9999ff" colSpan="2"><FONT color="#ffffff" size="2">留言板</FONT></TD>
  48. </TR>
  49. <TR class="folight">
  50. <TD><FONT size="2">名称 :</FONT></TD>
  51. <TD><asp:textbox id="name" runat="server"></asp:textbox>&nbsp;&nbsp;<FONT color="#ff0000">*</FONT>
  52. </TD>
  53. </TR>
  54. <TR class="folight">
  55. <TD><FONT size="2">E-Mail :</FONT></TD>
  56. <TD><asp:textbox id="email" runat="server"></asp:textbox>&nbsp;&nbsp;<FONT color="#ff0000">*</FONT>
  57. &nbsp;
  58. </TD>
  59. </TR>
  60. <TR class="folight">
  61. <TD><FONT size="2">标题:</FONT></TD>
  62. <TD><asp:textbox id="subject" runat="server" width="200"></asp:textbox>&nbsp;&nbsp;<FONT color="#ff0000">*</FONT>
  63. </TD>
  64. </TR>
  65. <TR class="folight">
  66. <TD><FONT size="2">内容:</FONT></TD>
  67. <TD><asp:textbox id="message" runat="server" Columns="30" Rows="15" TextMode="MultiLine"></asp:textbox></TD>
  68. </TR>
  69. <TR class="folight">
  70. <TD colSpan="2">
  71. <asp:Button id="Button1" runat="server" Text="提交"></asp:Button></TD>
  72. </TR>
  73. </TABLE>
  74. </form>
  75. </body>
  76. </HTML>