从asp.net中动态创建的控件中获取数据 [英] get data from dynamically created controls in asp.net
本文介绍了从asp.net中动态创建的控件中获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我现在创建动态文本框,如何从动态文本框获取数据
使用c#.net
在asp.net中
我正在使用foreach(在pannel.conntrols中控制g)
但它不读取动态控件,而仅读取静态控件
或者也用于each(控制this.conntrols中的g)
但没有效果
:->注意m在下拉文本更改事件上创建了所有文本框
hi all
i create dynamic text boxes now how to get data from the dynamic text boxes
in asp.net using c#.net
i m using foreach(controls g in pannel.conntrols)
but it dos not read dynamic controls but read only static controls
or am also usedforeach(controls g in this.conntrols)
but no effect
:->Note m created all textboxes on a dropdown text changed event
how it should be done
推荐答案
我知道这样做很慢,也许不是最好的方法,但是我使用数组列表来跟踪控件我动态创建它们
I know its a slow way to do it, and maybe not the best but I use an array list to keep track of my controls when i create them dynamically
这篇关于从asp.net中动态创建的控件中获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文