-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTech.aspx
48 lines (46 loc) · 3.27 KB
/
Tech.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<%@ Page Title="" Language="C#" MasterPageFile="~/Template.master" AutoEventWireup="true" CodeFile="Tech.aspx.cs" Inherits="Tech" %>
<asp:Content ID="Content1" ContentPlaceHolderID="BorderContentPlaceHolder" Runat="Server">
<img alt="富藤科技技术支持" height="195" src="images/b/tech.jpg" width="960" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContentPlaceHolder" runat="Server">
<div class="stitle">
<div class="stitle1">技术支持</div>
</div>
<div class="defaltContainer">
<asp:Repeater ID="NewsRepeater" runat="server" OnItemCommand="NewsRepeater_ItemCommand">
<ItemTemplate>
<table cellpadding="0" cellspacing="0" border="0" style="width: 700px;">
<tr>
<td style="width: 20px; vertical-align: bottom;">
<img height="16px" width="16px" src="images/news2.gif" alt="newsarrer" /></td>
<td style="vertical-align: bottom; width: 500px; height: 30px; list-style-position: outside;
border-bottom: silver 1px dotted; list-style-type: disc;">
<%#Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "isTop")) ? "<img src='images/hot.gif' />" : " "%>
<a target="_blank" href="TechDetails.aspx?articleID=<%#DataBinder.Eval(Container.DataItem,"编号") %>"
title="<%#DataBinder.Eval(Container.DataItem,"articleTitle")%>">
<%#DataBinder.Eval(Container.DataItem, "articleTitle").ToString().Length > 28 ? DataBinder.Eval(Container.DataItem, "articleTitle").ToString().Substring(0,28)+"…" : DataBinder.Eval(Container.DataItem, "articleTitle")%>
</a>
</td>
<td style="vertical-align: bottom; text-align: right; width: 100px; list-style-position: outside;
border-bottom: silver 1px dotted; list-style-type: disc;">
<%#DataBinder.Eval(Container.DataItem, "articleTime", "{0:yyyy-MM-dd}")%>
</td>
</tr>
</table>
</ItemTemplate>
</asp:Repeater>
<div class="Clear"></div>
<div class="Paging">
当前页:<asp:Label ID="CurrentPageLabel" runat="server" Text="1"></asp:Label>
总页数:<asp:Label ID="TotalPageLabel" runat="server" Text="1"></asp:Label>
<asp:LinkButton ID="FirstLinkButton" runat="server" OnClick="FirstLinkButton_Click">首页</asp:LinkButton>
<asp:LinkButton ID="PreLinkButton" runat="server" OnClick="PreLinkButton_Click">上一页</asp:LinkButton>
<asp:LinkButton ID="NextLinkButton" runat="server" OnClick="NextLinkButton_Click">下一页</asp:LinkButton>
<asp:LinkButton ID="LastLinkButton" runat="server" OnClick="LastLinkButton_Click">末页</asp:LinkButton>
转到第<asp:DropDownList ID="DropDownListPageNum" runat="server" AutoPostBack="true"
onselectedindexchanged="DropDownListPageNum_SelectedIndexChanged" >
<asp:ListItem>1</asp:ListItem>
</asp:DropDownList>页
</div>
</div>
</asp:Content>