在后台cs文件中有个函数:
public string getStyle(object style)
{
if ((int)style == 1)
return "文字";
}
return "图片";
在前台的Repeater中要这样调用,
<%#this.getStyle(Eval("link_style"))%>