Can i call a function from my master page to my default page? I need to reload the content on my default page when a button is clicked on my master page. Im using session variables. but the page loads before the variables are set. Its causing an issue. So i want to call a function on my default page from my master page.
default.aspx.cs
private void SendSessionVariables(object p, object p_2)
{
//call this function from my master page
}
Masterpage.aspx.cs
protected void LinkButton1_Click1(object sender, EventArgs e)
{
Session["SexType"] = "M";
//session is set now i need to call the function on my default page
}