Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pre Render Master Pages and ViewState

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)
    { }
}
like image 562
user694071 Avatar asked Jan 31 '26 23:01

user694071


1 Answers

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.

like image 129
andleer Avatar answered Feb 02 '26 14:02

andleer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!