protected override void OnLoad( EventArgs e ) { base.OnLoad( e ); if ( Page.IsPostBack ) { EnsureChildControls(); if ( CanEdit && _ddlNoteType.Visible ) { NoteTypeId = _ddlNoteType.SelectedValueAsInt(); } } }