Hi All,
I would like to access a label value in master page from another page under the same master page:
MASTER PAGE:
<asp:Label ID="Label1" runat="server"></asp:Label>
<asp:LinkButton ID="LinkBntAddCategory" runat="server" onclick="LinkBntAddCategory_Click">Add Categories</asp:LinkButton>
if (!IsPostBack)
{
if (Session["UserEmail"] != null)
{
// Gives email of user after login:
Label1.Text = Session["UserEmail"].ToString();
}
}
protected void LinkBntAddCategory_Click(object sender, EventArgs e)
{
Response.Redirect("QuizAddCategory.aspx");
}
How to Access the Label1 email value after the user clicks on "Add Categories" Link ?
QuizAddCategory.aspx is under the same masterpage
Many thanks in advance