在占位符中找不到动态控件 [英] Can't find dynamic control in placeholder

查看:109
本文介绍了在占位符中找不到动态控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



点按钮点击。我根据复选框的选择在占位符中添加了treeview控件。

保存后点击选择我无法在占位符中找到控件

查找代码



Hi All,

On button Click. I am adding treeview controls in a placeholder based on the selection of the checkboxes.
On save click after selection i am unable to find the controls in the place holder
Find the code

 foreach (Control ctrl in treeViewPlaceHolder.Controls)
                    {
}

推荐答案

阅读答案mokeefe在下面的链接。我希望这是你的要求。



http://forums.asp.net/t/1098870.aspx?Dynamic+Controls+in+Placeholder+lossed+after+postback [ ^ ]
Read the answer of mokeefe in the below link. I hope that is your requirement.

http://forums.asp.net/t/1098870.aspx?Dynamic+Controls+in+Placeholder+lossed+after+postback[^]


这篇关于在占位符中找不到动态控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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