There is some viewstate stuff going on in the codebehind and then there is an update panel. When I add this into a child page referenced by a master page it breaks all the previously working functionality I had before from my user controls.
child to master page code behind
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
GetBrands();
GetStyles();
GetColors();
this.BindItemsList();
}
}
catch (Exception)
{ }
}
Try removing the UpdatePannel. If this fixes your code, you will have isolated the issue to your implementation around ViewState. Issues with UpdatePannels and ViewState are not uncommon.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With