please explain the code in thehttp://forums.asp.net/t/1737841.aspx/1?please+explain+the+code+in+theWed, 09 Nov 2011 01:00:27 -050017378414673562http://forums.asp.net/p/1737841/4673562.aspx/1?please+explain+the+code+in+theplease explain the code in the <p>please explain the code in the ArticleListing.cs and ProductListing.cs&nbsp;</p> <pre class="src"><span color="blue" style="color:blue"></span></pre> <pre class="prettyprint">private bool _showDepartmentPicker = true; public bool ShowDepartmentPicker { get { return _showDepartmentPicker; } set { _showDepartmentPicker = value; ddlDepartments.Visible = value; lblDepartmentPicker.Visible = value; lblSeparator.Visible = value; } } protected override void LoadControlState(object savedState) { object[] ctlState = (object[])savedState; base.LoadControlState(ctlState[0]); this.ShowDepartmentPicker = (bool)ctlState[1]; this.ShowPageSizePicker = (bool)ctlState[2]; this.EnablePaging = (bool)ctlState[3]; } protected override object SaveControlState() { object[] ctlState = new object[4]; ctlState[0] = base.SaveControlState(); ctlState[1] = this.ShowDepartmentPicker; ctlState[2] = this.ShowPageSizePicker; ctlState[3] = this.EnablePaging; return ctlState; } I can not understand what set value to the Properties</pre> <pre class="prettyprint"> _showDepartmentPicker = value; ddlDepartments.Visible = value; lblDepartmentPicker.Visible = value; lblSeparator.Visible = value;</pre> <pre class="prettyprint"><span id="result_box" lang="en"><br /><br /><br />&nbsp;<span class="hps">and</span> <span class="hps">when</span> <span class="hps">it is</span></span>. <br /><span id="result_box" class="short_text" lang="en"><span class="hps"> sorry for the</span> <span class="hps">English</span></span><br /> <span id="result_box" class="short_text" lang="en"><span class="hps"> </span></span><span id="result_box" class="short_text" lang="en"><span class="hps">thank you very much</span></span><br /><br /><br /></pre> <pre class="src"><span style="color: blue;" color="blue"><br style="color: blue;" color="blue" /></span></pre> 2011-11-08T17:24:05-05:004673577http://forums.asp.net/p/1737841/4673577.aspx/1?Re+please+explain+the+code+in+theRe: please explain the code in the <p>1)&nbsp;ShowDepartmentPicker</p> <p>if you call&nbsp;ShowDepartmentPicker=true then it will make 3 controls visible, if&nbsp;ShowDepartmentPicker=false - all 3 controls will be hidden.</p> <p>2, 3) Both methods&nbsp;LoadControlState and&nbsp;SaveControlState take arrays of type object and load values to appropriate variables/properties.</p> 2011-11-08T17:39:17-05:004674025http://forums.asp.net/p/1737841/4674025.aspx/1?Re+please+explain+the+code+in+theRe: please explain the code in the <p>Very thanks</p> 2011-11-09T01:00:27-05:00