Click to See Complete Forum and Search --> : how i access a member variable of Master Page Class


neojoogoon
July 26th, 2006, 03:21 PM
-- master page class

public partial class Frame : System.Web.UI.MasterPage
{
public string Sec;
protected string No;

protected void Page_Load(object sender, EventArgs e)
{
Sec = Request.Params["Sec"];
No = Request.Params["No"];
}
}


-- content holder page


public partial class List : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Frame f = new Frame();
Response.Write("f.Sec=" + f.Sec);
}
}


finally, value of f.Sec is null, yes of couse it's null value

course I made a instance of Frame class, it's new object

but how do I access the value of Master page class' member variable...

hmmmm it should be simple...