DataList 控制項分頁操作

來源:互聯網
上載者:User
分頁|控制項 aspx 源檔案

<%@ Page language="c#" Codebehind="radionj_list.aspx.cs" AutoEventWireup="false" Inherits="radio.radio.radionj_list" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>NJ列表</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<LINK href="admin/style/item.css" type="text/css" rel="stylesheet">
<style>
.normal
{
font-weight:normal
}
.bigsize
{
font-weight:bold;
}

<!-- asthlon發表於 05 3-25 -->
</style>

</HEAD>
<body MS_POSITIONING="GridLayout"> <!--<table border="0" cellspacing="0" cellpadding="0">

</table>-->
<form id="Form1" method="post" runat="server">
<div align="center">
<asp:datalist id="info_data" runat="server" ShowFooter="False" GridLines="Both" BorderColor="Control"
RepeatColumns="2" RepeatDirection="Horizontal" HorizontalAlign="Center" ShowHeader="False"
CellPadding="5" BorderWidth="0px" RepeatLayout="Flow">
<ItemStyle HorizontalAlign="Center" Height="120px" Width="140px" VerticalAlign="Middle"></ItemStyle>
<ItemTemplate>
<table cellspacing="0" cellpadding="0">
<tr>
<td><img src=http://www.163design.net/a/s/".images/r_7_11.jpg"></td>
<td valign="middle" bgcolor="#fecc00" align="center"><a href='<%# DataBinder.Eval(Container.DataItem,"id","radio_nj_info.aspx?id={0}") %>'>
<div style="overflow:hidden;width:90px;height:90px;"><img width=90 src='<%# Return_Nj_Detail((string)DataBinder.Eval(Container.DataItem,"content"),1)%>'></div>
</a>
</td>
<Td><img src=http://www.163design.net/a/s/".images/r_7_13.jpg"></Td>
</tr>
</table>
</ItemTemplate>
</asp:datalist>
<div style="PADDING-LEFT:40px"><FONT color="#000000">共
<asp:label id="list_num" runat="server"></asp:label>條記錄</FONT>
<asp:label id="list_at" runat="server"></asp:label><FONT color="#000000"> </FONT><asp:linkbutton id="p0" runat="server" CommandName="p0"><font face="Webdings">9</font></asp:linkbutton>
<asp:linkbutton id="p1" runat="server" CommandName="p1">
<font face="Webdings">7</font></asp:linkbutton>
[<asp:PlaceHolder id="p_pagelist" runat="server"></asp:PlaceHolder>]
<asp:linkbutton id="p2" runat="server" CommandName="p2">
<font face="Webdings">8</font></asp:linkbutton>
<asp:linkbutton id="p3" runat="server" CommandName="p3">
<font face="Webdings">:</font></asp:linkbutton>
<!--
 <asp:textbox id="atTxt" onkeyup="this.value=this.value.replace(/\D/g,'')" runat="server" Width="35px"
onafterpaste="this.value=this.value.replace(/\D/g,'')"></asp:textbox><asp:button id="Go_TO" runat="server" Text="GO"></asp:button>
-->
</div>
</div>
</form>
</body>
</HTML>


.cs 源檔案

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace radio.radio
{



相關文章

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。