手机
当前位置:查字典教程网 >编程开发 >asp.net教程 >asp.net Repeater绑定时使用函数
asp.net Repeater绑定时使用函数
摘要:在后台cs文件中有个函数:复制代码代码如下:publicstringgetStyle(objectstyle){if((int)style=...

在后台cs文件中有个函数:

复制代码 代码如下:

public string getStyle(object style)

{

if ((int)style == 1)

{

return "文字";

}

return "图片";

}

在前台的Repeater中要这样调用,

复制代码 代码如下:

<%#this.getStyle(Eval("link_style"))%>

【asp.net Repeater绑定时使用函数】相关文章:

asp.net动态添加js文件调用到网页的方法

asp.net Xml绑定到数据控件的具体实现

asp.net下使用DIME协议上传文件

asp.net错误捕获page_error事件使用方法

asp.net下PageMethods使用技巧

asp.net字符串分割函数使用方法分享

asp.net中Repeater控件用法笔记

asp.net下Response.ContentType类型汇总

asp.net动态加载自定义控件的方法

asp.net中使用cookie传递参数的方法

精品推荐
分类导航