Class.aspx
上传用户:tongfeicq
上传日期:2022-07-20
资源大小:2856k
文件大小:5k
源码类别:

.net编程

开发平台:

Visual C++

  1. <%@ page language="C#" autoeventwireup="true" inherits="_Class, oyaya" %>
  2. <%@ Register Src="include/search.ascx" TagName="search" TagPrefix="uc2" %>
  3. <%@ Register Src="include/top.ascx" TagName="top" TagPrefix="uc1" %>
  4. <%@ Register Src="include/bottom.ascx" TagName="bottom" TagPrefix="uc0" %>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml" >
  7. <head runat="server">
  8. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  9.     <title>无标题页</title>
  10.     <link href="include/css.css" rel="Stylesheet" type="text/css" />
  11. </head>
  12. <body>
  13.     <form id="form1" runat="server">
  14.     <div>
  15.      <uc1:top id="Top1" runat="server"></uc1:top>
  16. <table border="0" cellpadding="0" cellspacing="0" width="900" style="margin-top:8px;">
  17.     <tr>
  18.          <td width="20" style="height: 19px"><img src="images/location-items.gif" /></td>
  19.           <td colspan="2" class="tops">&nbsp;<a href="index.aspx">网站首页</a>  -&gt; <asp:Label ID="Label4" runat="server"></asp:Label></td>
  20.      </tr>
  21. </table>
  22. <table width="900" border="0" align="center" cellpadding="0" cellspacing="0" class="table_top">
  23.   <tr>
  24.        <td valign="top">
  25.  <table border="0" cellpadding="0" cellspacing="0" width="642">
  26.          <tr>
  27.             <td valign="top" colspan="3" style="height: 550px">
  28. <asp:DataList ID="DataList1" EnableViewState="false" runat="server" RepeatColumns="1" RepeatDirection="Horizontal">
  29.             <ItemTemplate>
  30.                 <div class="gonggao indexa1">
  31.                  <div class="indexb">
  32.                     <div class="indexc1"><%# Eval("board_name") %></div>
  33.                     <div class="indexd"><a href="news.aspx?id=<%# Eval("id") %>">&gt;&gt;更多</a></div>
  34.                 </div>
  35.                 <ul class="newslist2">
  36.                     <%#newsclass(Convert.ToInt32(DataBinder.Eval(Container.DataItem, "ID").ToString()))%>
  37.                  </ul>
  38.                 </div>
  39.             </ItemTemplate>
  40.       </asp:DataList>
  41.               </td>
  42.             </tr>
  43.           </table>      
  44. </td> 
  45.     <td width="6"></td>
  46. <td valign="top">
  47. <uc2:search ID="Search1" runat="server" />
  48. <table border="0" cellpadding="0" cellspacing="0" class="gonggao" style="width:250px;margin-top: 10px;">
  49.       <tr>
  50.          <td class="gonggaoback1" style="height: 30px"> <img src="images/index1_r33_c16.gif" start="" /></td>
  51.          <td class="gonggaoback2" style="height: 30px; width: 70%;"> 热门TOP10</td>
  52.          <td class="gonggaoback3" style="height: 30px">  &gt;&gt;更多</td>
  53.       </tr>
  54.       <tr>
  55.          <td colspan="3" rowspan="2" style="text-align: left">
  56.           <asp:DataList ID="DataList2" runat="server">
  57. <HeaderTemplate><table border="0" width="100%"></HeaderTemplate>
  58.    <itemtemplate>
  59.      <tr>
  60.        <td align="left" width="210">&nbsp; <a href="NewsShow.aspx?id=<%#Eval("id") %>"><%#(System.Text.RegularExpressions.Regex.Replace(DataBinder.Eval(Container.DataItem, "title").ToString(), "<[^>]*>", "").Length<18)?(System.Text.RegularExpressions.Regex.Replace(DataBinder.Eval(Container.DataItem, "title").ToString(), "<[^>]*>", "")):(System.Text.RegularExpressions.Regex.Replace(DataBinder.Eval(Container.DataItem, "title").ToString(), "<[^>]*>", "").Substring(0,18)) %>…</a></td>
  61.        <td><%# Eval("hklick") %></td>
  62.       </tr>
  63.    </itemtemplate>
  64.    <FooterTemplate></table></FooterTemplate>
  65.   </asp:DataList> </td>
  66.        </tr>
  67. </table>
  68.         <table border="0" cellpadding="0" cellspacing="0" class="gonggao" width="250" style="margin-top: 10px;">
  69.                         <tr>
  70.                             <td class="gonggaoback1" style="height: 30px">
  71.                                 <img src="images/index1_r33_c16.gif" start="" /></td>
  72.                             <td class="gonggaoback2" style="height: 30px"> 图文资讯</td>
  73.                             <td class="gonggaoback3" style="height: 30px">&gt;&gt;更多</td>
  74.                         </tr>
  75.                         <tr>
  76.                             <td colspan="3" rowspan="2" style="text-align: left">
  77.                                 <asp:DataList ID="DataList4" runat="server" RepeatColumns="2" RepeatDirection="Horizontal">
  78.                                     <ItemTemplate>
  79. <table>
  80.   <tr>
  81.     <td><div class="pina"><a href="NewsShow.aspx?id=<%# Eval("id") %>"><img src="<%# Eval("picurl") %>" height="85" width="113" border="0" /></a></div></td>
  82.   </tr>
  83.   <tr>
  84.     <td><a href="e<%# Eval("id") %>.aspx"><%#((DataBinder.Eval(Container.DataItem, "title" ).ToString().Length<8)?DataBinder.Eval(Container.DataItem, "title" ).ToString():DataBinder.Eval(Container.DataItem, "title" ).ToString().Substring(0,8)+"...")%></a></td>
  85.   </tr>
  86. </table>
  87.                                     </ItemTemplate>
  88.                                 </asp:DataList></td>
  89.                         </tr>
  90.                         <tr>
  91.                         </tr>
  92.                     </table>
  93. </td>
  94.   </tr>
  95. </table>
  96.         <uc0:bottom id="bottom" runat="server">
  97.         </uc0:bottom>
  98.     </div>
  99.     </form>
  100. </body>
  101. </html>