I have a user control in a web form that is declared as follows:
<nnm:DeptDateFilter ID="deptDateFilter" runat="server" AllowAllDepartments="True" />
In the code for this control, AllowAllDepartments declared as follows:
internal bool AllowAllDepartments { get; set; }
However, when I browse the page and set a breakpoint in the Page_Load control event handler, my AllowAllDepartments property AllowAllDepartments always false. What are the possible reasons for this?
NEWS IDENTIFICATION: Even setting a property programmatically does not affect the value of the property when I hit my breakpoint in the Page_Load of the control. Here is the page_page of the main page:
deptDateFilter.FilterChanged += deptDateFilter_FilterChanged; if (!IsPostBack) { deptDateFilter.AllowAllDepartments = true; PresentReport(); }
strong text
Profk source share