动力控制 [英] Dynemic Control
本文介绍了动力控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我是库马尔(Pradeep Kumar).我在asp.net中创建动态控制时遇到问题.
我只想在for循环的帮助下创建10个文本字段,提交页面后,我希望每个文本框的值都以一个字符串开头,并以``,''分隔.
请帮我.byyyy
Hi
I am pradeep Kumar. I am geting problem in creating dynemic Control in asp.net.
Just I want''s to create 10 Text Field with the help of for loop and after submit the page I want''s the value of each text box in a string seperate by '',''.
Plz Help me.byyyy
推荐答案
那么您面临的问题是什么.在Page_Preinit方法中创建控件并将其添加到页面集合中,然后在提交页面之后,可以通过访问页面集合中的控件来读取所有控件的值.
So whats the problem you are facing. Create your control in Page_Preinit method and add them in the page collection then after submitting the page, you can read all the controls value by accessing the controls from page collection.
这篇关于动力控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文