关于Reapter多重嵌套的详细补充
<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多重嵌套的详细补充的更多相关文章
- shell 多行重定向方法(多重嵌套)
这里讲的是多重嵌套.没用过 EOF的朋友请参考其他基础贴 在自动化运维中,常常需要shell脚本.在自动化创建脚本时,会遇到脚本内容里有用EOF重定向到配置文件的代码. 这样就不能用EOF来创建脚本了 ...
- Java 如何跳出多重嵌套循环体?
1. 在最外层循环语句前定义一个标号,循环体内任意位置都可以使用带有标号的break语句跳出外层循环,结束整个循环. System.out.println("MainClass1 Start ...
- linux目录结构详细补充
Linux各目录及每个目录的详细介绍 [常见目录说明] Linux目录和Windows目录有着很大的不同,Linux目录类似一个树,最顶层是其根目录,如下图: /bin 二进制可执行命令 /dev 设 ...
- json 多重嵌套反序列化和序列化
namespace ConsoleApplication1 { class Program { static void Main(string[] args) ...
- Fragment多重嵌套实现电影,影院展示页
转载请标明出处: http://www.cnblogs.com/dingxiansen/p/8135888.html 本文出自:丁先森-博客园 公司以前的app是用H5封的,由于一个模块效果用H5实现 ...
- centos安装nginx(针对一哥们的博客进行的详细补充(用红色字体标出了补充部分))
centos安装nginx 原文地址:http://www.cnblogs.com/leechenxiang/p/5402960.html 一.什么是nginx 是一个C语言开发的HTTP反向代理服务 ...
- 关于多重嵌套的JSON数据解析
最近项目中需要封装一套复杂的数据模型返回给前端,大致就是一个用户会有多笔订单,每个订单下可能会有多笔保单, 大致的数据模型如下: 为了方面描述,先看一下一个用户下有一条订单,一条订单下有一个保险订单的 ...
- [AngularJS] “多重路由”嵌套模块——AngularJS“路由”嵌套学习资料教程
这是小编的一些学习资料,理论上只是为了自己以后学习需要的,但是还是需要认真对待的 以下内容仅供参考,请慎重使用学习 1.AngularJS路由嵌套 Angularjs本身自带路由模块,可以满足通过不同 ...
- C#多维数组与嵌套数组
using System; namespace abc.e.f//等价于下面分层嵌套的写法.且这种写法不管命名空间abc有没有定义过,也不管命名空间e有没有定义过 { class MYTestX { ...
随机推荐
- 编译安装0bda 8179无线网卡
CentOS下安装USB无线网卡(Obda:8179) 参考:http://blog.163.com/thinki_cao/blog/static/83944875201311593529913/ c ...
- codeforces B. Xenia and Ringroad 解题报告
题目链接:http://codeforces.com/problemset/problem/339/B 题目理解不难,这句是解题的关键 In order to complete the i-th ta ...
- Codeforces7C 扩展欧几里得
Line Time Limit: 1000MS Memory Limit: 262144KB 64bit IO Format: %I64d & %I64u Submit Status ...
- chrome 插件
SwitchySharp.crx SwitchyOmega.crx Readability_v3.0.15.crx Hackman.crx EditThisCookie_v1.4.1.crx AdBl ...
- fedora yum 使用代理的方法
配置yum: 编辑/etc/yum.conf添加下列一行: proxy=http://domain/user:passwd@<proxy ip>:80 <proxy ip>:代 ...
- opencv学习笔记(七)SVM+HOG
opencv学习笔记(七)SVM+HOG 一.简介 方向梯度直方图(Histogram of Oriented Gradient,HOG)特征是一种在计算机视觉和图像处理中用来进行物体检测的特征描述子 ...
- svn: warning: 'xxxxxx' is already under version control
[root@NGINX-APACHE-SVN pm]# svn status ? plugins ? files ? images ? data ? resources [root@NGINX-APA ...
- Git Server & Git Hook
http://ju.outofmemory.cn/entry/16893 我喜欢 github,我现在的个人代码全部是托管在上面了,但是一些公司或者某些项目不适合放入github中,你希望能有一个完全 ...
- sdut 2413:n a^o7 !(第三届山东省省赛原题,水题,字符串处理)
n a^o7 ! Time Limit: 1000MS Memory limit: 65536K 题目描述 All brave and intelligent fighters, next you w ...
- thinkphp验证码使用
在thinkphp中使用验证码很容易,只要调用thinkphp现有的方法就可以.当然,php的GD库肯定是要开的(就是在php.ini中要加载gd模块). thinkphp 3.1 --------- ...