<asp:Repeater ID ="rptfour" runat ="server" OnItemDataBound="two_Bind">
<ItemTemplate >
<div class="Cont_02l" style="margin-right:19px">
<div class="guanli"><h2><%#Eval("s_name") %></h2><div class="rdr_01">更多>></div></div>
<asp:Repeater ID ="rptnews" runat ="server" >
<ItemTemplate >
<div class="guanli_news">
<h4><%# Common.FormatString(Eval("sxy_title").ToString (), ) %></h4>
<p><%# UploadPicture.interceptStrs(Eval("sxy_content").ToString(), "")%>…[查看详情]</p>
</div>
</ItemTemplate>
</asp:Repeater>
<div class="guanli_list">
<ul>
<asp:Repeater ID ="rptlist" runat ="server" >
<ItemTemplate >
<li>·<%# Common.FormatString(Eval("sxy_title").ToString (), ) %></li>
</ItemTemplate>
</asp:Repeater>
</ul>
</div>
</div>
</ItemTemplate>
</asp:Repeater> protected void two_Bind(object sender, RepeaterItemEventArgs e)
{
News_Bind(e,);
}
protected void four_Bind(object sender, RepeaterItemEventArgs e)
{
News_Bind(e, );
}
protected void News_Bind( RepeaterItemEventArgs e,int c)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
Repeater rpttop = e.Item.FindControl("rptnews") as Repeater;
Repeater rptlist = e.Item.FindControl("rptlist") as Repeater;
DataRowView drv = (DataRowView)e.Item.DataItem;
string type = drv.Row["s_oname"].ToString();
if (rpttop != null && rptlist != null)
{
rpttop.DataSource = DB.GetDataTable("top "+c+" .............", "table1", "sxy_type=5 and sxy_tj=1 and sxy_state=1 and sxy_sType='"+type+"'", "sxy_id desc");
rpttop.DataBind(); rptlist.DataSource = DB.GetDataTable("top 5 ...........", "table1", "sxy_type=5 and sxy_state=1 and sxy_sType='" + type + "' and sxy_id not in (select top 1 sxy_id from College where sxy_type=5 and sxy_tj=1 and sxy_state=1 and sxy_sType='" + type + "' order by sxy_id desc)", "sxy_id desc");
rptlist.DataBind();
}
}
}

关于Reapter多重嵌套的详细补充的更多相关文章

  1. shell 多行重定向方法(多重嵌套)

    这里讲的是多重嵌套.没用过 EOF的朋友请参考其他基础贴 在自动化运维中,常常需要shell脚本.在自动化创建脚本时,会遇到脚本内容里有用EOF重定向到配置文件的代码. 这样就不能用EOF来创建脚本了 ...

  2. Java 如何跳出多重嵌套循环体?

    1. 在最外层循环语句前定义一个标号,循环体内任意位置都可以使用带有标号的break语句跳出外层循环,结束整个循环. System.out.println("MainClass1 Start ...

  3. linux目录结构详细补充

    Linux各目录及每个目录的详细介绍 [常见目录说明] Linux目录和Windows目录有着很大的不同,Linux目录类似一个树,最顶层是其根目录,如下图: /bin 二进制可执行命令 /dev 设 ...

  4. json 多重嵌套反序列化和序列化

    namespace ConsoleApplication1 {     class Program     {         static void Main(string[] args)      ...

  5. Fragment多重嵌套实现电影,影院展示页

    转载请标明出处: http://www.cnblogs.com/dingxiansen/p/8135888.html 本文出自:丁先森-博客园 公司以前的app是用H5封的,由于一个模块效果用H5实现 ...

  6. centos安装nginx(针对一哥们的博客进行的详细补充(用红色字体标出了补充部分))

    centos安装nginx 原文地址:http://www.cnblogs.com/leechenxiang/p/5402960.html 一.什么是nginx 是一个C语言开发的HTTP反向代理服务 ...

  7. 关于多重嵌套的JSON数据解析

    最近项目中需要封装一套复杂的数据模型返回给前端,大致就是一个用户会有多笔订单,每个订单下可能会有多笔保单, 大致的数据模型如下: 为了方面描述,先看一下一个用户下有一条订单,一条订单下有一个保险订单的 ...

  8. [AngularJS] “多重路由”嵌套模块——AngularJS“路由”嵌套学习资料教程

    这是小编的一些学习资料,理论上只是为了自己以后学习需要的,但是还是需要认真对待的 以下内容仅供参考,请慎重使用学习 1.AngularJS路由嵌套 Angularjs本身自带路由模块,可以满足通过不同 ...

  9. C#多维数组与嵌套数组

    using System; namespace abc.e.f//等价于下面分层嵌套的写法.且这种写法不管命名空间abc有没有定义过,也不管命名空间e有没有定义过 { class MYTestX { ...

随机推荐

  1. iOS 一个工程中引用其他工程时要注意Skip Install选项

    当主工程引用其他工程,以便使用他们生成的库的时候,在发布时,主要注意这个选项.这个选项的说明如下 Activating this setting when deployment locations a ...

  2. Linux系统排查3——I/O篇

    当磁盘无法写入的时候,一般有以下可能: 文件系统只读 磁盘已满 I节点使用完 一. 遇到只读的文件系统 文件系统自动设置成只读可能是系统自我保护的一种机制,因此需要实现弄清究竟是什么原因造成了文件系统 ...

  3. c标签设置jsp页面的绝对路径

    <%@ page language="java" pageEncoding="UTF-8"%><%@ taglib prefix=" ...

  4. HDU 4310 Hero (贪心算法)

    A - Hero Time Limit:3000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Sta ...

  5. document.createElement

    document.createElement()的用法 document.createElement()是在对象中创建一个对象,要与appendChild() 或 insertBefore()方法联合 ...

  6. Ubuntu 更新源

    1.首先备份Ubuntu12.04源列表 sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup (备份下当前的源列表) 2.修改更新源 ...

  7. 考前复习(codevs 2837)

    2837 考前复习  时间限制: 1 s  空间限制: 128000 KB  题目等级 : 黄金 Gold 题解  查看运行结果     题目描述 Description Aiden马上要考试了,可他 ...

  8. p235习题3

  9. Kafka学习笔记(二):Partition分发策略

    kafka版本0.8.2.1 Java客户端版本0.9.0.0 为了更好的实现负载均衡和消息的顺序性,Kafka Producer可以通过分发策略发送给指定的Partition.Kafka保证在par ...

  10. Lua和C之间的交互

    转自:http://blog.csdn.net/sumoyu/article/details/2592693 (一) Lua 调C函数 什么样类型的函数可以被Lua调用   typedef int ( ...