两个母板页嵌套,在内容页获得第一个母板页数据的问题
2011-11-29 11:11
141 查看
问题参考http://topic.csdn.net/u/20111129/09/887007d1-566c-4205-85bd-063ff3b50f5d.html?seed=632864658&r=76705307#r_76705307,来自论坛网友问及:
View Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Insus.NET;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
IGetTextBoxValueable obj = (IGetTextBoxValueable)this.Master.Master;
this.Label1.Text = obj.GetTextBoxValue();
}
}
效果:
测试代码:http://download.cnblogs.com/insus/ASPDOTNET/GetMasterPageControlValue.rar
View Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Insus.NET;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
IGetTextBoxValueable obj = (IGetTextBoxValueable)this.Master.Master;
this.Label1.Text = obj.GetTextBoxValue();
}
}
效果:
测试代码:http://download.cnblogs.com/insus/ASPDOTNET/GetMasterPageControlValue.rar
相关文章推荐
- 解决jsp中request获得数据是乱码的问题
- Excel的数据导入到数据库中出现的两个问题及解决方案
- 解决IE下jquery ajax无法获得最新数据的问题(IE缓存)
- MySQL-Cluster重启时两个数据节点启动速度慢,耗费时间特别长的问题
- 【数据结构】单链表—寻找两个相交链表中第一个公共结点 — 蛮力法 / 栈 / 指针先走
- Android中两个Activity之间数据传递及返回问题
- 两个链表相交以及第一个公共节点的问题
- Xcode7.0网络问题,无法获得接口数据是HTTP的问题
- 数据处理的两个基本问题02 - 零基础入门学习汇编语言39
- 黑马程序员——java中两个线程对同一个数据做不同操作的安全问题
- SpringMVC Controller函数参数问题(就是作为方法的参数,以类名小写开头可以在JSP页面中获得该变量的数据 )
- 两个完全一样的listview,将第一个中的全部数据复制到第二个中去
- 如何判断Android手机是否因为信号问题无法获得数据
- oracle union查询中BLOB字段出错问题,ora-00932:数据类型不一致:应为 -,但却获得BLOB
- 寻找两个相交链表的第一个公共节点的问题
- 判断两个链表是否相交及获得相交的第一个节点
- 两个字符串hash问题:检查两个单词是否互为变位词和在一个字符串中第一个只出现一次的字符
- Mysql 中 IN条件为字符串时只有第一个数据可用的问题
- 关于datagridview单元格不切换焦点无法获得新输入数据的问题解决方法
- 数据处理的两个基本问题02 - 零基础入门学习汇编语言39