<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. discuz 帖子模块用到的表及自动发帖函数

    最近在做一个discuz的插件,由于需要程序自动生成并调用discuz已经存在插件的帖子.然而这就相当于自动发帖的功能了.网上找了一下,大部分都是通过curl模拟登陆,模拟发帖的,这显然不满足我的要求 ...

  2. Java for LeetCode 152 Maximum Product Subarray

    Find the contiguous subarray within an array (containing at least one number) which has the largest ...

  3. org.apache.catalina.session.StandardManager doLoad

    转载自:http://www.cnblogs.com/java727/p/3300613.html SEVERE: IOException while loading persisted sessio ...

  4. 使用wkhtmltopdf实现HTML转PDF的解决方案

    最近,项目需要将HTML页面转换为PDF文件,所以就研究了下HTML转PDF的解决方案,发现网上比较流行的解决方案有3种: (1)iText (2)Flying Saucer (3)wkhtmltop ...

  5. std::map常用方法

    map<string, int> Employees; Employees["Mike C."] = 12306; Employees.insert(make_pair ...

  6. docke跨主机通信之gre隧道

    GRE简介 GRE可以对网络层的任何协议来进行封装,类似LVS的IPIP协议,在原有的数据报上增加GRE协议数据报.然后在网络上传输,到达对端后,解开GRE数据报头,得到真实的数据报.其中的mac地址 ...

  7. August 1st, 2016, Week 32nd Monday

    Laughing is the most touching mask. 笑容是最动人的面具. I used to be very weclome in those I had met. And the ...

  8. CI中PHP写法规范(不断更新)

    1.类名首字母大写,多个单词用下划线连接,首字母小写是无效的 举例: class CI_Model 2.routes路由配置中的右侧在配置类名和方法名的时候都是小写,如果大写可能会出现404找不到的错 ...

  9. Sql server之路 (六)上传服务器图片

    原理: 上传图片的名字 插入到数据库里 上传图片的内容(二进制数据) 写到服务器指定的目录下 下次读取图片的时候 从数据库里的指定字段里读取图片文件名 从数据库的指定路径下 拼串成完成的路径 就可以下 ...

  10. InputStream的三个read的区别

    转自:http://www.blogjava.net/toby/archive/2009/04/24/267413.html 1.read这个方法是对这个流一个一个字节的读,返回的int就是这个字节的 ...