FindControl查找内容页上的某个控件
2009-02-18 17:46
239 查看
今天学生在上机课正好问到。折腾了我半节课时间才解决。一个服务器短控件死活findcontrol不到。经过查找父控件,总算是发现了方法。
TextBox tb = Master.FindControl("ContentPlaceHolder1").FindControl("TextBox1") as TextBox;
母版页带来的问题还真不少。
TextBox tb = Master.FindControl("ContentPlaceHolder1").FindControl("TextBox1") as TextBox;
母版页带来的问题还真不少。
相关文章推荐
- PreviousPage.FindControl遇到MasterPage查找控件的方法
- 如何查找带母版页的控件 Master.Master.FindControl("")
- this.PreviousPage.FindControl遇到MasterPage,如何查找控件?
- 当PreviousPage.FindControl遇到MasterPage,如何查找控件?
- 【转】当PreviousPage.FindControl遇到MasterPage,如何查找控件
- PreviousPage.FindControl遇到MasterPage查找控件的方法
- 确定多重选择列表控件 (List Control) 中的选定内容
- find grep perl配合查找替换内容
- (MFC)list control控件 得到某行某列的字符串内容
- 解决使用MasterPage后,Page.FindControl方法找不到指定控件的问题
- linux下的find文件查找命令与grep文件内容查找命令
- 用std::find查找文件流中的内容
- 呈现控件内容 继承Control、WebControl、CompositeControl的不同
- linux下的find文件查找命令与grep文件内容查找命令
- linux下的find文件查找命令与grep文件内容查找命令
- Android布局设计之ExpandableList绑定XML数据构成级联、item布局页面的控件查找及配置child事件,自定义适配显示内容
- 呈现控件内容 继承Control、WebControl、CompositeControl的不同
- DataForm中包含TabControl控件,FindNameInContent方法无法获取未选中TabItem里的控件问题
- linux下的find文件查找命令与grep文件内容查找命令
- linux下的find文件查找命令与grep文件内容查找命令