在Asp.Net中以Dyna形式DropDown添加项目 [英] DropDown add items in Dyna Form in Asp.Net

查看:65
本文介绍了在Asp.Net中以Dyna形式DropDown添加项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

在这里,我正在尝试通过DynaForms生成控件,有些是如何生成下拉控件的.但是我无法在运行时添加项目.

我创建了一个Java脚本文件以从xml文件生成控件,最后以动态生成HTML文件中的控件为最终结果.但是它无法检索使用控件本身进行硬编码的项目.

我该怎么办?

请告知

Hi Friends,

Here i''m trying to generate a control through DynaForms, some how i generated the dropdown control. But I am not able to add items at runtime.

I created a java script file to generate a controls from xml file and it ends up with dynamic generation of the controls in the HTML file. But it fails to retrieve the items that are hard coded with the controls itself.

What should i do?

Please advise

推荐答案

我在传递选项时将控制值从数组值更改为int.现在,它可以很好地用于下拉列表.
I changed the control value from array value to int while passing the options. Now it works fine for the drop down list.


这篇关于在Asp.Net中以Dyna形式DropDown添加项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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