H
Howard
i have a default.master and default.aspx
in default.aspx i would like to access a variable in default.master
pageTitle
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//pageTitle= "frist page";
}
}
this is my default.master
public partial class Default_Master : System.Web.UI.MasterPage
{
public string pageTitle= "No title";
protected void Page_Load(object sender, EventArgs e)
{
}
}
default.master html
<title><% =pageTitle%></title>
by accessing default.aspx the title should say first page. but it's not
working
Howard
in default.aspx i would like to access a variable in default.master
pageTitle
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//pageTitle= "frist page";
}
}
this is my default.master
public partial class Default_Master : System.Web.UI.MasterPage
{
public string pageTitle= "No title";
protected void Page_Load(object sender, EventArgs e)
{
}
}
default.master html
<title><% =pageTitle%></title>
by accessing default.aspx the title should say first page. but it's not
working
Howard