So i have a content page aspx
& aspx.cs
, i add to the aspx this line <%@ MasterType virtualPath="~/MasterPage.master"%>
so i could pass my data from the aspx.cs
to my master page
. and it works, but once i click to move to another page or refresh the page the data i passed is gone and and the value return to the original default value the field had before i passed anything. in the master page i wrote:
public string PassLogedUser
{
get { return this.LogedUser.Text; }
set { this.LogedUser.Text = value; }
}
protected void Page_Load(object sender, EventArgs e)
{
LogedUser.Text = PassLogedUser;
}
How can i keep the data i pass when i navigate to another page in browser or even when i refresh the page?
Thanks