query.aspx
资源名称:xwfbxt.rar [点击查看]
上传用户:tongfeicq
上传日期:2022-07-20
资源大小:2856k
文件大小:5k
源码类别:
.net编程
开发平台:
Visual C++
- <%@ page language="C#" autoeventwireup="true" inherits="query, oyaya" %>
- <%@ Register Src="include/top.ascx" TagName="top" TagPrefix="uc1" %>
- <%@ Register Src="include/search.ascx" TagName="search" TagPrefix="uc2" %>
- <%@ Register Src="include/bottom.ascx" TagName="bottom" TagPrefix="uc0" %>
- <!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 id="Head1" runat="server">
- <link href="include/css.css" rel="Stylesheet" type="text/css" />
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title>新闻搜索</title>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <uc1:top ID="Top1" runat="server" />
- <table width="900" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:10px; margin-bottom:10px;">
- <tr>
- <td width="642" valign="top">
- <table border="0" cellpadding="0" cellspacing="0" class="kkk" width="642">
- <tr>
- <td colspan="3" class="new_tit"><div class="new_tit1"> 搜索列表</div></td>
- </tr>
- <tr>
- <td valign="top" colspan="3" style="height: 640px">
- <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" GridLines="None" ShowHeader="False" Width="640px" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging">
- <Columns>
- <asp:TemplateField>
- <ItemTemplate>
- <table style="width: 100%; border-bottom: lightgrey 1px solid;" cellpadding="5">
- <tr>
- <td colspan="3" class="quer">
- <img src="images/ArticleCommon.gif" /> <a href="NewsShow.aspx?id=<%# Eval("id") %>"><%# Eval("title") %></a></td>
- </tr>
- <tr>
- <td colspan="3" style="font-size: 12px; color: dimgray; text-indent: 20px; text-align: left">
- <%#(System.Text.RegularExpressions.Regex.Replace(DataBinder.Eval(Container.DataItem, "contents").ToString(), "<[^>]*>", "").Length<140)?(System.Text.RegularExpressions.Regex.Replace(DataBinder.Eval(Container.DataItem, "contents").ToString(), "<[^>]*>", "")):(System.Text.RegularExpressions.Regex.Replace(DataBinder.Eval(Container.DataItem, "contents").ToString(), "<[^>]*>", "").Substring(0,140)) %>……<a href="NewsShow.aspx?id=<%# Eval("id") %>">[阅读全文]</a>
- </td>
- </tr>
- <tr>
- <td style="padding-left: 20px; font-size: 12px; width: 150px; text-align: left">
- 作者:<%# Eval("oAuthor") %>
- </td>
- <td style="font-size: 12px; width: 150px; text-align: left">时间:<%# Eval("data") %>
- </td>
- <td style="font-size: 12px; text-align: left">人气:<%# Eval("hklick")%>
- </td>
- </tr>
- </table>
- </ItemTemplate>
- </asp:TemplateField>
- </Columns>
- </asp:GridView>
- <p>
- <asp:HyperLink id="HyperLink1" runat="server">首页</asp:HyperLink>
- <asp:HyperLink id="Hyperlink2" runat="server">上一页</asp:HyperLink>
- <asp:HyperLink id="Hyperlink3" runat="server">下一页</asp:HyperLink>
- <asp:HyperLink id="Hyperlink4" runat="server">尾页</asp:HyperLink>
- <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
- <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
- <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label></p>
- </td>
- </tr>
- </table>
- </td>
- <td width="159" rowspan="2" valign="top" style="width: 6px"></td>
- <td width="250" rowspan="2" valign="top" style="height: 22px; width: 250px;">
- <uc2:search ID="Search1" runat="server" /> </td>
- </tr>
- </table>
- <uc0:bottom id="bottom" runat="server">
- </uc0:bottom>
- </div>
- </form>
- </body>
- </html>