日期:2008-09-12  浏览次数:20557 次


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="../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="../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">&nbsp;</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>
<!--
&nbsp;<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
{
 /// <summary>
 /// asthlon发表于 05 3-25。
 /// </summary>
 public class radionj_list : System.Web.UI.Page
 {
  protected Syste