无法访问回发时动态创建的控件. [英] Unable to access dynamically created controls on postback.

查看:61
本文介绍了无法访问回发时动态创建的控件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ItemTemplate内有一个带有更新面板的中继器设置,在更新模板内,我正在动态添加复选框控件.每当页面执行回发操作以保存选中的复选框时,似乎都找不到定位控件的方法.

我尝试了几种不同的方法来使这些方法不起作用.我尝试将EnableViewState设置为true,这也行不通.

任何帮助将不胜感激!
-Kevin

I have an repeater setup with an update panel inside of the the ItemTemplate, inside the update template I am dynamically adding checkbox controls. Whenever I the page does a postback to save what checkboxes are checked, There seems to be no possible way to locate the controls.

I've tried a few different appraoches at getting this to work with no results. I've tried setting EnableViewState to true, that also does not work.

Any help would be appreciated!
- Kevin

推荐答案

你好,

感谢您的发帖!我建议您在以下其中一个ASP论坛中发布您的问题: http://forums.asp.net/

祝您度过愉快的一天!


这篇关于无法访问回发时动态创建的控件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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