我们自己观察 这是由两个重复项组成的 重复项包含重复项 而重复项的数据源是由订单号决定 即父Repeater的某数据源字段

protected void Repeater1_ItemDataBound1(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
Repeater rep = e.Item.FindControl("Repeater2") as Repeater;//找到里层的repeater对象
Student student = e.Item.DataItem as Student;
int StudentNo = Convert.ToInt32(student.StudentNo); //获取填充子类的id
rep.DataSource = StudentManager.GetAddressByStudentNo(StudentNo);
rep.DataBind();
}
}
如果使用DateSet数据源的时候 要获取StudentNo这种主键 可以通过DataRowitem

最新文章

  1. jQuery所支持的css样式
  2. [QDB] 幽灵分享:QDataSet+TQMSSQLConverter 实战技巧
  3. C语言实现二叉树-01版
  4. Cocos2dx老版本适配64位
  5. Core Java 学习笔记——2.基本数据类型&类型转换
  6. 练习--LINUX进程间通信之消息队列MSG
  7. struts2操作数据库
  8. Palindrome Partitioning 解答
  9. 06JS高级创建对象使用原型共享对象方法
  10. ebs清除并法管理器所清除的表
  11. 【hanoi】hanoi移动次数和移动步骤
  12. svn的简介
  13. RabbitMQ 使用demo
  14. HTML5 全屏 API
  15. python+selenium实现登录账户
  16. mysql5.x安装脚本
  17. Spring常用注解总结
  18. Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV
  19. PHP中的回调函数
  20. spring boot (一): Hello World

热门文章

  1. 5种JVM垃圾收集器特点和8种JVM内存溢出原因
  2. php使用phpqrcode生成二维码
  3. 重载和重写的区别?构造器 Contructor 构造器是否可被 override?
  4. ReadWriteLock场景应用解析
  5. ORACLE数据库中执行计划出现INTERNAL_FUNCTION一定是隐式转换吗?
  6. 零基础想学习C语言,没资源、没人带、不知道从何开始?
  7. Hive 性能测试工具 hive-testbench
  8. 耐人寻味的CSS属性font-family
  9. idea自用快捷键(非常实用)
  10. WebShell代码分析溯源(九)