All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
Visual C++ 6.0中的向导类型
发布一个最强的PHP通用分页类_[PHP教程]
五种提高SQL性能的方法_[SQL,Server教程]
制作WEB在线编辑器-插入HTML标签_.net资料_编程技术
通过PHP连接MYSQL数据库、创建数据库、创建表_[PHP教程]
ASP.NET中连接MYSQL_[Asp.Net教程]
Delphi过程与函数的调用约定
PHP技巧实例:树形结构的算法_php资料_编程技术
ASP.NET Remoting概述与实例
Delphi带背景的工具栏实例
Reading number is top 10 pictures
青春清纯美女大集合4
Plump breasts1
Breasts woman big set 2
The mother was a stay-at-home children too tired took three baby suicide
Is said to be a Chinese female artist fame explicit pictures before1
运动的范冰冰1
A beautiful girl to bud3
赵惟依写真2
The goddess of the single reason1
囚犯暴乱了咋办?
Download software ranking
尖东毒玫瑰A
Unix video tutorial8
Tram sex maniac 2 (H) rar bag4
Boxer vs Yellow2
电脑知识及技巧大合集
ASP.NET.2.0.XML.高级编程(第3版)
Ashlynn Video3
Take off clothes to survival
Eclipse 4.2.2 For Win64
XML+Web+Service开发教程







<%# DataBinder.Eval(Container.DataItem, "ProductName") %>










后台代码部分(部分代码):
//在绑定分类品名时,绑定分类下的产品
private void rptCategories_ItemDataBound(object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e)
{
BLL.Products products =new BLL.Products();
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
Repeater rptProduct = (Repeater) e.Item.FindControl("rptProduct");
//找到分类Repeater关联的数据项
DataRowView rowv = (DataRowView)e.Item.DataItem;
//提取分类ID
int CategorieId = Convert.ToInt32(rowv["ID"]);
//根据分类ID查询该分类下的产品,并绑定产品Repeater
rptProduct.DataSource = products.GetProductsByCategorieId(CategorieId);
rptProduct.DataBind();
}
}

本文由设计家园 收集整理





delv published in(发表于) 2014/1/27 6:48:37 Edit(编辑)
asp.net控件用法--在Repeater中嵌套使用Repeater_[Asp.Net教程]

asp.net控件用法--在Repeater中嵌套使用Repeater_[Asp.Net教程]

asp.net控件用法--在Repeater中嵌套使用Repeater_[Asp.Net教程]

在一般的网站中浏览类别的用户控件通常都位于大多数 ASP.NET 页的左边,它使用户能够按类别快速的查找产品。最近遇到一个客户,因为在他网站上展示的产品并不多,所以要求在原有类别浏览的基础上将产品也加进去。一来 更方便,二来加长了左部导航栏的长度使页面更协调。原有的分类导航栏是由Repeater实现的,现在需要在每一个分类下加入该类的商品信息,于是我想到 了在原有Repeater中嵌套Repeater。实现界面如下:


本文由设计家园 收集整理


前台页面部分:









<%# DataBinder.Eval(Container.DataItem, "TypeName") %>


添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.