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

📄 index.aspx

📁 随着计算机科学的发展
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %>

<!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>
    <style type="text/css">
<!--
.STYLE1 {
	color: #000000;
	font-family: "幼圆";
	font-size: 40px;
	font-weight: bold;
}
.STYLE4 {font-size: 12pt}
.STYLE5 {
	font-size: 12px;
	font-family: "黑体";
}
.STYLE7 {
	font-size: 16px;
	font-family: "宋体";
}
body {
	background-color: #E0E8FA;
}
.STYLE8 {
	font-family: "宋体";
	font-size: 16px;
	color: #333333;
}
.STYLE13 {font-family: "宋体"; font-size: 14px; }
.STYLE17 {
	font-size: 25px;
	font-family: "宋体";
	color: #000099;
}
.STYLE18 {font-size: 16px; font-family: "黑体"; }
.STYLE24 {
	color: #FFFFFF;
	font-family: "黑体";
	font-size: 14px;
}
-->
    </style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>
<form runat=server>
<table width="930" border="0" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
      <!--DWLayoutTable-->
      <tr>
        <td width="997" bgcolor="#E0E8FA" style="width: 995px; height: 93px"><span class="STYLE1">简单校园新闻发布系统</span></td>
  </tr>
  </table>
<table width="930" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
  <!--DWLayoutTable-->
  <tr>
    <td valign="top" style="height: 300px; width: 401px;"><table width="100%"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td background="img/011-1.gif" style="height: 17px; width: 128px;"><div align="center"><span class="STYLE5" style="font-size: 14pt">公告</span></div></td>
        </tr>
        <tr>
          <td height="194" bgcolor="#E0E8FA" style="width: 128px"><p align="center" class="STYLE7">
            
            <div align="center">网站测试
            </div>
            <p class="STYLE7"> 简单校园新闻发布系统!制作人——05软件3班!
            </p></td>
        </tr>
      </table></td>
      <td valign="top" style="width: 205px; height: 300px; text-align: left;"><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:loginConnectionString %>"
                SelectCommand="SELECT * FROM [news]"></asp:SqlDataSource>
          <table style="width: 100%">
              <tr>
                  <td style="width: 100px; height: 140px;">
                      <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" Width="569px" style="font-size: 10pt; font-family: 宋体, 黑体" OnSelectedIndexChanged="Page_Load" OnSelectedIndexChanging="GridView1_SelectedIndexChanging" AllowSorting="True">
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <Columns>
                        <asp:HyperLinkField DataNavigateUrlFields="newsid" DataNavigateUrlFormatString="~\detail.aspx?newsid={0}"
                        DataTextField="newsbiaoti" HeaderText="新闻标题" />
                        <asp:BoundField DataField="newstime" HeaderText="发表时间" />
                        <asp:BoundField DataField="newsid" HeaderText="newsid" Visible="False" />
                    </Columns>
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
                  </td>
              </tr>
          </table>
          <span style="font-size: 10pt"><span style="font-family: 宋体"><span style="color: #3300ff">
      &gt;&gt;&gt;</span> </span></span> <a href="detail.aspx" target="_blank"><span style="font-size: 10pt; font-family: 宋体">[更多新闻]</span></a></td>
        <td valign="top" style="height: 300px; width: 253px;">
            <table style="width: 100%">
                <tr>
                    <td style="width: 95px; height: 88px"><table height="156" border="0" cellpadding="0" cellspacing="0" style="width: 203%">
                      <tr>
                        <th bgcolor="#0033FF" style="height: 19px; text-align: left;" scope="col" colspan="2"><span class="STYLE24"> 用户登陆&gt;&gt;</span>&nbsp;</th>
                      </tr>
                      <tr>
                        <td style="width: 55px; text-align: right; height: 2px;"><span class="STYLE13">
                            用户名</span></td>
                        <td style="width: 39px; height: 2px;"><asp:TextBox ID="TextBox1" runat="server" Width="94px"></asp:TextBox></td>
                      </tr>
                      <tr>
                        <td style="width: 55px; height: 31px; text-align: right"><span class="STYLE13">&nbsp;密码</span></td>
                        <td style="width: 39px; height: 31px"><asp:TextBox ID="TextBox2" runat="server" Width="94px" TextMode="Password"></asp:TextBox></td>
                      </tr>
                      <tr>
                        <td height="59" style="width: 55px; height: 1px">&nbsp;</td>
                        <td style="width: 39px; height: 1px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <th scope="col" style="width: 30px; height: 43px">
                                <asp:Button ID="Button2" runat="server" Text="登陆" OnClick="Button2_Click" /></th>
                            <th scope="col" style="width: 1px; height: 43px">&nbsp;</th>
                            <th scope="col" style="width: 27px; height: 43px"><asp:Button ID="Button3" runat="server" Text="管理" OnClick="Button3_Click" /></th>
                          </tr>
                        </table>                          </td>
                      </tr>
                      <tr>
                        <td style="height: 27px;" colspan="2"><asp:Label ID="Label1" runat="server" ForeColor="Red" Height="30px" Width="150px" style="font-size: 8pt; font-family: 宋体"></asp:Label></td>
                      </tr>
                    </table>
                        <asp:LinkButton ID="LinkButton1" runat="server" Width="129px" style="font-size: 14px; font-family: 宋体" Font-Size="Smaller" PostBackUrl="~/register.aspx">注册...</asp:LinkButton></td>
                </tr>
                <tr>
                    <td style="width: 95px; height: 105px">
                        <table width="232%" height="100" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#E0E8FA">
          <tr>
            <td class="STYLE4" style="height: 104px"><div align="center" style="text-align: left">
                <span style="font-size: 12pt; color: blue; font-family: 黑体; text-decoration: underline">
                    您觉得本站还有哪方面需要改进?</span><asp:RadioButtonList ID="RadioButtonList1" runat="server" Width="148px">
                        <asp:ListItem>布局</asp:ListItem>
                        <asp:ListItem>色彩</asp:ListItem>
                        <asp:ListItem>样式</asp:ListItem>
                    </asp:RadioButtonList><span style="text-decoration: underline"> </span>
                <asp:Button ID="Button1" runat="server" Font-Size="Small" OnClick="Button1_Click"
                    Text="投票" Width="98px" /><span style="text-decoration: underline"> </span>
            </div></td>
          </tr>
        </table>
                    </td>
                </tr>
            </table>
      </td>
  </tr>
      <tr>
        <td colspan="3" valign="top" style="height: 50px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          
          <tr>
            <td style="height: 29px">
			<MARQUEE onmouseover=this.stop(); onmouseout=this.start(); 
            scrollAmount=2 scrollDelay=10 direction=right height=10> 
            <span class="STYLE17">欢迎光临简单新闻发布系统,这是广告栏目。。。欢迎来电洽谈!</span></marquee></td>
          </tr>
          
        </table></td>
      </tr>
      <tr>
        <td style="height: 153px; width: 401px;"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#66FFFF" bgcolor="#E0E8FA">
          <tr>
            <td height="19" colspan="3" class="STYLE18"><div align="center">新闻图片</div></td>
          </tr>
          <tr>
            <td width="7%">&nbsp;</td>
            <td width="87%">&nbsp;</td>
            <td width="6%">&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
        <td style="width: 205px; text-align: left; height: 153px;">
           
            <span style="font-size: 10pt"><span style="font-family: 宋体">
                <span style="color: #3300ff"></span> </span></span>
            <table width="100%" style="width: 100%">
                <tr>
                    <td width="479" style="width: 100px; height: 139px;">
            <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" CellPadding="4"
                DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" Width="578px" style="font-size: 10pt; font-family: 宋体, 黑体" OnSelectedIndexChanged="Page_Load" OnSelectedIndexChanging="GridView1_SelectedIndexChanging">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <Columns>
                    <asp:HyperLinkField DataNavigateUrlFields="newsid" DataNavigateUrlFormatString="~\detail.aspx?newsid={0}"
                        DataTextField="newsbiaoti" HeaderText="新闻标题" />
                    <asp:BoundField DataField="newstime" HeaderText="发表时间" />
                    <asp:BoundField DataField="newsid" HeaderText="newsid" Visible="False" />
                </Columns>
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <EditRowStyle BackColor="#999999" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
                        <span style="font-size: 10pt"><span style="font-family: 宋体"><span style="color: #3300ff">
                        </span></span></span>
                  </td>
                </tr>
          </table>
            <span><span style="font-family: 宋体"><span style="color: #3300ff">
                </span> </span></span><span style="font-size: 10pt"><span style="font-family: 宋体"><span
                style="color: #3300ff">&gt;&gt;&gt;</span></span></span><a href="detail.aspx" target="_blank"><span style="font-size: 10pt; font-family: 宋体">[更多新闻]</span></a><a href="detail.aspx" target="_blank"><span></span></a></td>
        <td style="width: 253px; height: 153px;">
            <div style="z-index: 101; left: 750px; width: 184px; position: absolute; top: 508px;
                height: 108px">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#E0E8FA">
          <tr>
            <td colspan="3" background="img/yqlj.gif" style="height: 17px"><div align="center"><span class="STYLE8">友 情 链 接</span></div></td>
          </tr>
          <tr>
            <td style="width: 84px; height: 19px"><span class="STYLE13">财大</span></td>
            <td width="164" style="height: 19px"><div align="center"><a href="www.jxufe.cn">www.jxufe.cn</a></div></td>
            <td style="height: 19px; width: 42px;">&nbsp;</td>
          </tr>
          <tr>
            <td style="width: 84px; height: 17px;"><span class="STYLE13">搜狐</span></td>
            <td style="height: 17px"><div align="center"><a href="www.sohu.com">www.sohu.com</a></div></td>
            <td style="height: 17px; width: 42px;">&nbsp;</td>
          </tr>
          <tr>
            <td style="width: 84px; height: 19px"><span class="STYLE13">网易</span></td>
            <td style="height: 19px"><div align="center"><a href="www.163.com">www.163.com</a></div></td>
            <td style="height: 19px; width: 42px;">&nbsp;</td>
          </tr>
        </table>
          </div>
        </td>
      </tr>
      <tr><td style="width: 401px; height: 36px;"></td><td style="width: 205px; text-align: center; height: 36px;">
          <p style="text-align: center"><span class="STYLE4" style="font-family: 宋体">&nbsp;All Rights reserved &copy;<br />
            新闻发布系统 版权所有</span></p>
          </td>
        <td style="width: 253px; height: 36px;"></td>
      </tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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