c#xml动态绑定radiobuttonlist
来源:互联网 发布:百度文库下载器 mac 编辑:程序博客网 时间:2024/05/17 03:50
protected void getXmlData()
{
//xml文件路径
string strFliePath = Server.MapPath("/Temple/TempleXMLFile.xml" );
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(strFliePath);
//得到顶层节点
XmlNodeList topM = xmldoc.DocumentElement.ChildNodes;
foreach (XmlElement element in topM)
{
if (element.Name.ToLower() == "temple")
{
//得到该节点的子节点
XmlNodeList nodelist = element.ChildNodes;
if (nodelist.Count > 0)
{
//DropDownList1.Items.Clear();
foreach (XmlElement el in nodelist)//读元素值
{
if (el.Name.ToLower() == "temple_name")
{
RadioButtonList1.Items.Add(new ListItem(el.ChildNodes[0].Value.ToString(), el.Attributes["Temple_Value"].Value.ToString()));
}
}
}
}
}
}
- c#xml动态绑定radiobuttonlist
- 绑定RadioButtonList
- RadioButtonList绑定图片
- RadioButtonList绑定数据库
- C++(四)动态绑定
- RadioButtonList的数据绑定故事
- RadioButtonList绑定图片 常用属性
- [C++]静态绑定与动态绑定
- 【C++】静态绑定和动态绑定
- TreeView的动态绑定(C#)
- C#-dynamic及动态绑定
- objective-c之动态绑定
- RadioButtonList等数据源的绑定案例
- CheckBoxList和RadioButtonList控件的绑定
- DataSet绑定ListBox、DropDownList、RadioButtonList、CheckBoxList控件
- RadioButtonList控件绑定图片Vertical对齐
- RadioButtonList控件绑定数据时设定默认值
- RadioButtonList绑定后台数据,触发点击事件
- 拉格朗日数乘法解条件极值
- c#调用xml保存的模板
- radius manager-3.3.0-professional-release Crack license 无限制授权文件
- 获得自增列的值
- 用时间戳思想解决读取缓存问题
- c#xml动态绑定radiobuttonlist
- asp.net揭秘
- 28.June.2010 Diary
- POJ_1050_To the Max
- SCA概念与应用实践(7.SCA装配模型--7.4 composite)
- Office Open XML WordprocessingML
- 谁有变声软件发一个给我啊·· 谢谢啦
- Office Open XML SpreadsheetML
- BizTalk Server的基本机制(二) 上下文属性(Context Property)