RadioButtonList绑定图片及泛型Dictionary应用
2013-02-07 11:23
716 查看
View Code
private Dictionary<int, string> GetData()
{
Dictionary<int, string> dic = new Dictionary<int, string>();
int i = 0;
System.IO.FileInfo fi;
var Images =
from f in System.IO.Directory.GetFiles(Server.MapPath("MsSiteImages"))
orderby f descending
select f;
foreach (var filename in Images)
{
fi = new System.IO.FileInfo(filename);
dic.Add(i, "<img src='" + "MsSiteImages/" + fi.Name + "' alt='" + fi.Name +
"' title='" + fi.Name + "'/>");
i++;
}
return dic;
}
相关文章推荐
- RadioButtonList绑定图片
- RadioButtonList控件绑定数据时设定默认值
- c#xml动态绑定radiobuttonlist
- CheckBoxList和RadioButtonList控件的绑定
- 数据绑定技术_单值数据绑定示例;将 DataTable,DataSet,DataView,DataReader 绑定到 DataGrid 控件示例;DataBinder.Eval;数组的值赋给ListBox1;Hashtable 绑定到;RadioButtonList;将XML 文件做为数据源绑定到控件
- RadioButtonList绑定图片及泛型Dictionary应用
- 绑定RadioButtonList
- 绑定HashTable到RadioButtonList
- 关于数据绑定的一个小小的总结:绑定数据到List类型的控件(RadioButtonList,ListBox等),双重绑定。
- repeater嵌套RadioButtonList
- jquery给net里面的RadioButtonList添加选项改变事件
- 牛腩购物12 :整合用户登录页 用到 asp.net 内置票据认证控件的使用(用户登录 用户权限) 用户控件ascx 设置/获取RadioButtonList 和RadioButton
- droplist /RadioButtonList 默认选中
- iOS开发图片控件(ImageView)绑定代码并显示一张图片
- javascript+RadioButtonList(asp.net) 应用
- WPF动态绑定图片路径,不用Converter完美解决
- JAVAWEB开发之SpringMVC详解(二)——高级开发、数据回显、参数绑定集合、图片上传、json交互、validation校验、异常处理、RESTful支持、拦截器
- WPF Radio组的绑定
- RadioButton控件和RadioButtonList控件
- jquery单选框radio绑定click事件实现和是否选中的方法