This goes along with another question that I have asked, I have a drop down list on my master page that causes postback when changed and in that index changed method I am trying to find my ajax accordion to look at the selected index of it
protected void ddlSelectedCustomer_SelectedIndexChanged(object sender, EventArgs e)
{
CustomerSelected();
Response.AppendHeader("Refresh", "0;URL=storefront.aspx");
ViewState["SelectedAccordionIndex"] = (AjaxControlToolkit.Accordion)FindControl("MyAccordion").SelectedIndex;
}
Error that I get
Object reference not set to an instance of an object.