asp.net Repeater绑定时使用函数
2008-08-21 00:00
656 查看
在后台cs文件中有个函数:
在前台的Repeater中要这样调用,
public string getStyle(object style) { if ((int)style == 1) { return "文字"; } return "图片"; }
在前台的Repeater中要这样调用,
<%#this.getStyle(Eval("link_style"))%>
相关文章推荐
- asp.net Repeater绑定时使用函数
- 牛腩购物 8 整合用户留言 动软生成器 ,.NET在后置代码中输入JS提示语句(背景不会变白),repeater 循环的时候事件判断,repeater 隔行 奇数行,item列,隐藏区块 Panel 的使用,前台绑定代码的时候使用函数
- asp.net中使用分页控件,并绑定数据到GridView或Repeater
- Asp.net使用jQuery实现Gridview, Repeater异步绑定数据
- asp.net 在使用repeater控件时截取绑定字符方法
- ASP.NET中使用Eval()函数绑定数据时,不能使用IF进行逻辑判断的解决方案
- ASP.NET中 Repeater 的使用前台绑定
- 关于使用asp.net 的分页显示数据。Repeater绑定数据后的分页显示。
- ASP.NET中 DropDownList+Repeater的使用前台绑定
- asp.net中Repeater嵌套绑定的方法(使用两个Repeater做子类别绑定)
- asp.net中Repeater嵌套绑定的方法(使用两个Repeater做子类别绑定)
- ASP.NET中使用Eval()函数绑定数据时,不能使用IF进行逻辑判断的解决方案
- ASP.NET中使用Eval()函数绑定数据时,不能使用IF进行逻辑判断的解决方案
- ASP.NET 中 Repeater 控件使用说明
- asp.net数据绑定DataBind使用方法
- asp.net动态网站repeater控件使用及分页操作介绍
- ASP.NET使用ListView数据绑定控件和DataPager实现数据分页显示(一)
- asp.net使用dorpdownlist绑定无限级分类
- Asp.net Mvc 中使用Repeater的6种解决方案
- ASP.NET Repeater 绑定 DropDownList Calendar 选择日期