Working Around UserControl's Faulty IsPostBack


Microsoft's UserControl's IsPostBack property uses the Page.IsPostBack property. This means that dynamically loaded controls will always have IsPostBack = true. Thus, a control's presenter has no way of getting a correct isFirstCall argument into their Init() and Load() methods. To circumvent this (which the MVPControls may have already done.) I suggest either making a new "IsFirstCall" property in the public interface of the IContract or making a property in the MVPUserControl class.
Closed Feb 22, 2007 at 11:14 PM by Heynemann


Heynemann wrote Feb 22, 2007 at 11:13 PM

Gilligan, please add me to your msn so we can talk about this and other bugs. bernardo@perlink.com.br

wrote Feb 22, 2007 at 11:13 PM

wrote Feb 22, 2007 at 11:14 PM

Resolved with changeset 18916.

wrote Feb 13, 2013 at 12:04 AM

wrote May 15, 2013 at 4:06 AM