📄 petnews.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="petnews.aspx.cs" Inherits="Default2" %>
<!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>
<form id="form1" runat="server">
<div>
<center>
<table border="0" cellpadding="0" cellspacing="0" width="900";">
<tr>
<td align="center" style="height: 45px; width: 879px;"><img src="image/top.jpg" width="900" id="IMG1" onclick="return IMG1_onclick() " height="100" alt="luolili"/>
</td>
</tr>
</table>
<table>
<tr>
<td style="height: 24px; width: 894px;">
<a href="index.aspx"><font color=green><b>首页</b></font></a>
<asp:Label ID="label1" runat="server"><a href="sto.aspx"><font color=green><b>购物车</b></font></a></asp:Label>
<asp:Label ID="label2" runat="server"><a href="shoucang.aspx"><font color=green><b>我的收藏夹</b></font></a></asp:Label>
<asp:Label ID="label3" runat="server"><a href="petnews.aspx"><font color=green><b>宠物新闻</b></font></a></asp:Label>
<asp:Label ID="label4" runat="server"><a href="note.aspx"><font color=green><b>留言板</b></font></a></asp:Label>
<asp:Label ID="label6" runat="server"><a href="aboutus.aspx"><font color=green><b>关于我们</b></font></a></asp:Label>
<asp:Label ID="label5" runat="server"><a href="../login.aspx"><font color=green><b>后台管理</b></font></a></asp:Label>
</td>
</tr>
</table>
</center>
<center>
</center>
<center>
<table bgcolor=red border="1">
<tr>
<td style="width: 900px; height: 81px;" align=left>
<asp:Image ID="Image1" runat="server" Height="82px" ImageUrl="image/gou2.jpg" Width="139px" /> 广告招商</td>
</tr>
</table>
<table style="width: 900px; height: 600px;" border="2" id="TABLE2" onclick="return TABLE2_onclick()">
<tr>
<td style="width: 368px; height: 617px;" align=left valign="top">
<br/>
<table border="2">
<tr>
<th style="width: 365px; height: 20px;">
用户登录:
</th>
</tr>
</table>
用户名<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请输入" Width="52px" ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
<br />
密码
<asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="密码不能为空" Width="62px" ControlToValidate="TextBox2"></asp:RequiredFieldValidator>
<br />
<br />
验证码:
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox> <br />
<asp:TextBox ID="TextBox4" runat="server" BackColor="#FF8080"
BorderStyle="Solid" Width="71px"></asp:TextBox>
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox4"
ControlToValidate="TextBox3" ErrorMessage="请输入验证码输入"></asp:CompareValidator><br />
<br />
<asp:Label ID="Label9" runat="server" Width="161px"></asp:Label><br/>
<asp:Button ID="Button1" runat="server" Text="登录" Width="57px" OnClick="Button1_Click" />
<asp:Button ID="Button2" runat="server" Text="注册" Width="63px" OnClick="Button2_Click" CausesValidation="False" />
<br />
<br/>
<br/>
<hr>
<table border=2>
<tr>
<td style="width: 365px">
当前在线用户:
<asp:TextBox ID="TextBox5" runat="server" Width="78px"></asp:TextBox> </td>
</tr>
<tr>
<td style="width: 365px">
当前用户: <asp:TextBox ID="TextBox6" runat="server" Width="96px"></asp:TextBox></td>
</tr>
</table>
<table border="2" id="TABLE3" onclick="return TABLE3_onclick()">
<tr>
<th style="width: 365px">最新热门文章:
</th>
</tr>
<tr>
<td style="width: 365px; height: 241px" align="left" valign="top">
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource2"
AllowSorting="True" OnSelectedIndexChanged="GridView2_SelectedIndexChanged" DataKeyNames="id">
<Columns>
<asp:CommandField ShowSelectButton="True" ButtonType="Button" HeaderText="显示" SelectText="显示" />
<asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" SortExpression="id" />
<asp:BoundField DataField="click" HeaderText="click" SortExpression="click" />
<asp:BoundField DataField="title" HeaderText="title" SortExpression="title" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:EbusinessConnectionString8 %>"
SelectCommand="SELECT [id], [click], [title] FROM [petnews1] ORDER BY [click] DESC">
</asp:SqlDataSource>
</td>
</tr>
</table>
<table border="2" style="height: 192px">
<tr>
<th style="width: 365px; height: 7px;">广告位招商:
</th>
</tr>
<tr>
<td style="width: 365px; height: 99px">
<asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile="ad.xml" />
</td>
</tr>
</table>
<br />
<br />
<br />
</td>
<td valign="top" align=left style="height: 617px; width: 527px;">
<table id="TABLE1" onclick="return TABLE1_onclick()" border="2">
<tr>
<td style="width: 499px">
<asp:Label ID="Label8" runat="server" Width="163px"></asp:Label>
<td>
</tr>
<tr>
<td align=left style="width: 499px" >您现在的位置: <a class='LinkPath' href=''>可爱宠物网</a> >> <a href=''>宠物知识</a> >> 首页
</td>
</tr>
</table>
<table border="2" id="TABLE4" onclick="return TABLE4_onclick()">
<tr>
<th style="width: 500px; height: 22px;">
宠物知识文章列表:
</th>
</tr>
<tr>
<td style="width: 500px; height: 403px" align=left lang="aa" valign="top">
 
<br />
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
DataKeyNames="id" DataSourceID="SqlDataSource1" OnSelectedIndexChanged="GridView1_SelectedIndexChanged">
<Columns>
<asp:CommandField ShowSelectButton="True" ButtonType="Button" HeaderText="显示" SelectText="显示" />
<asp:BoundField DataField="id" HeaderText="编号" InsertVisible="False" ReadOnly="True"
SortExpression="id" />
<asp:BoundField DataField="title" HeaderText="标题" SortExpression="title" />
<asp:BoundField DataField="Auth" HeaderText="作者" SortExpression="Auth" />
<asp:BoundField DataField="date" HeaderText="发表日期" SortExpression="date" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:EbusinessConnectionString9 %>"
SelectCommand="SELECT [id], [title], [Auth], [date] FROM [petnews1]"></asp:SqlDataSource>
<br />
<asp:Label ID="Label7" runat="server" Width="68px"></asp:Label>
<asp:Label ID="Label10" runat="server" Width="78px"></asp:Label><br />
<br />
<hr>
</td>
</tr>
<tr>
<td style="height: 253px; width: 500px;">
<table border=2>
<tr>
<th style="width: 485px; background-color: #ffccff">
图片欣赏
</th>
</tr>
</table>
<table border=1 style="width: 492px">
<tr>
<td style="width: 500px">
<marquee direction=left >
<img src="dog/12.jpg" alt="gou"><img src="dog/13.jpg" alt="gou">
<img src="dog/4.jpg" alt="gou"><img src="dog/5.jpg" alt="gou">
</marquee>
</td>
</tr>
<tr>
<td style="width: 500px">
<marquee direction=left >
<img src="dog/7.jpg" alt="gou"><img src="dog/8.jpg" alt="gou">
</marquee>
</td>
</tr>
<tr>
<td style="width: 500px">
<marquee direction=left ><IMG alt="gou" src="dog/14.jpg"
/><IMG alt="gou" src="dog/15.jpg"
/></marquee>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -