从XML文件填充下拉列表框值 [英] Populate dropdown list box values from XML file

查看:225
本文介绍了从XML文件填充下拉列表框值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用于城市"的文本框和一个用于办公地点的下拉列表框,必须根据城市"值填写该框.

I have a textbox for City field and a drop down list box for office location which has to be filled up based on the City value.

如何在保留上述注意事项的情况下从xml文件填充下拉列表框的值.

How to populate the values of drop down list box from an xml file keeping the above consideration.

我正在asp.net用户控件中执行此操作,并在后面的C#代码中

I am doing this in a asp.net user control and C# code behind

将来,我不必每次都更改代码.我只更改了它的xml文件,并在下拉列表框中列出了与城市相关的办公地点.

In future i need not change the code every time. Its only the xml file i change and the corresponding city related office locations get listed in the drop down list box.

任何人都可以提供解决方案.

Can anybody provide the solution.

推荐答案

你好,Ranjana,

  跨度>

谢谢您的发帖!  ;我建议您在一个MS论坛中发布您的问题,

Thank you for your post!  I would suggest posting your question in one of the MS Forum,

HomeASP.NET Forums » Advanced ASP.NET » Custom Server Controls


这篇关于从XML文件填充下拉列表框值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆