/// <exclude /> protected override void AddAttributesToRender(HtmlTextWriter writer) { writer.AddAttribute("name", this.UniqueID); writer.AddAttribute("callbackid", this.ClientID); if (this.AutoPostBack) { writer.AddAttribute("onchange", "this.dispatchAction(PageBinding.ACTION_DOPOSTBACK)"); } if (this.SelectionRequired) { writer.AddAttribute("required", "true"); string requiredLabel = this.SelectionRequiredLabel; if (string.IsNullOrEmpty(requiredLabel)) { requiredLabel = StringResourceSystemFacade.GetString("Composite.Management", "AspNetUiControl.Selector.SelectValueLabel"); } writer.AddAttribute("label", requiredLabel); } if (!SelectedValue.IsNullOrEmpty()) { writer.AddAttribute("value", SelectedValue); } this.AddClientAttributes(writer); }