您的位置:首页 > 其它

两个母板页嵌套,在内容页获得第一个母板页数据的问题

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐