手机
当前位置:查字典教程网 >编程开发 >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用三层实现多条件检索示例

.net4.0中tuple元组的使用方法

asp.net OleDbCommand 的用法

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

asp.net自定义控件代码学习笔记

asp.net简化接收参数值的函数

asp.net webservice返回json的方法

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

Asp.net(C#)文件操作函数大全

asp.net 文件上传实例汇总

精品推荐
分类导航