/// <summary> /// Renders the contents of the control to the specified writer. This method is used primarily by control developers. /// </summary> /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param> protected override void RenderContents(HtmlTextWriter writer) { // add property fields writer.AddPrevalueHeading("Azure CDN API Settings"); writer.AddPrevalueRow("", "Add your Azure account information here."); writer.AddPrevalueRow("Account Name:", this.txtAccountName); writer.AddPrevalueRow("Key:", this.txtKey); }
/// <summary> /// Sends server control content to a provided <see cref = "T:System.Web.UI.HtmlTextWriter" /> object, /// which writes the content to be rendered on the client. /// </summary> /// <param name = "writer">The <see cref = "T:System.Web.UI.HtmlTextWriter" /> object that receives the server control content.</param> protected override void Render(HtmlTextWriter writer) { writer.AddAttribute(HtmlTextWriterAttribute.Class, "imageResizerPreValues"); writer.RenderBeginTag(HtmlTextWriterTag.Div); //start 'imageResizerPreValues' writer.AddPrevalueHeading("Aspose Image Resizer"); writer.AddPrevalueRow("Property Alias", "Alias of image property (eg. 'umbracoFile'):", PropertyAliasTextBox); writer.AddPrevalueRow("Width", "Maximum width of generated image", MaxWidthTextBox); writer.AddPrevalueRow("Height", "Maximum height of generated image", MaxHeightTextBox); writer.AddPrevalueRow("", "<p>Aspect ratio is maintained during image resizing.</br>Landscape will restrict to Width<br/>Portrait will restrict to Height</p>"); writer.RenderEndTag(); // end 'imageResizerPreValues' }
/// <summary> /// Renders the contents of the control to the specified writer. This method is used primarily by control developers. /// </summary> /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param> protected override void RenderContents(HtmlTextWriter writer) { // add property fields writer.AddPrevalueHeading("Amazon S3 and Cloud Front API Settings"); writer.AddPrevalueRow("", "Add your Amazon account information here."); writer.AddPrevalueRow("Access Key:", this.txtAccessKey); writer.AddPrevalueRow("Secret Key:", this.txtSecretKey); }
/// <summary> /// Renders the contents of the control to the specified writer. This method is used primarily by control developers. /// </summary> /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param> protected override void RenderContents(HtmlTextWriter writer) { // add property fields writer.AddPrevalueHeading("Cloud Files API Settings", "Add your Rackspace Cloud Files API token and username here"); writer.AddPrevalueRow("Username:"******"API Token:", this.txtApiKey); writer.AddPrevalueHeading("Container Settings", "Select your default container from the dropdown"); writer.AddPrevalueRow("Default Container <em>(optional)</em>:", this.ddlDefaultContainer); }
/// <summary> /// Renders the contents of the control to the specified writer. This method is used primarily by control developers. /// </summary> /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param> protected override void RenderContents(HtmlTextWriter writer) { // add property fields writer.AddPrevalueHeading("Cloud Files API Settings", "Add your Rackspace Cloud Files API token and username here"); writer.AddPrevalueRow("Username:"******"API Token:", this.txtApiKey); writer.AddPrevalueRow("Show Meta Data:", this.chkShowMetaData); }
/// <summary> /// Renders the contents of the control to the specified writer. This method is used primarily by control developers. /// </summary> /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param> protected override void RenderContents(HtmlTextWriter writer) { writer.AddPrevalueHeading("Columns"); writer.AddPrevalueRow("Show Column Labels?", "Enter a label for each column; you may also use dictionary item syntax (e.g. <code>[#dictionaryItem]</code>). (Optional - blank labels are acceptable)", this.CheckBoxShowColumnLabels); writer.AddPrevalueRow("Labels:", this.MtcContainer); writer.AddPrevalueHeading("Rows"); writer.AddPrevalueRow("Minimum:", "Minimum number of rows to display.", this.TextBoxMinimumRows); writer.AddPrevalueRow("Maximum:", "Maximum number of rows to display. Use -1 for unlimited rows.", this.TextBoxMaximumRows); writer.AddPrevalueRow("Disable sorting?", "Disables the ability to sort the rows.", this.CheckBoxDisableSorting); }
/// <summary> /// Renders the contents of the control to the specified writer. This method is used primarily by control developers. /// </summary> /// <param name="writer">A <see cref="T:System.Web.UI.HtmlTextWriter"/> that represents the output stream to render HTML content on the client.</param> protected override void RenderContents(HtmlTextWriter writer) { // add property fields writer.AddPrevalueHeading("Cloud Files API Settings", "Add your Rackspace Cloud Files API token and username here"); writer.AddPrevalueRow("Username:"******"API Token:", this.txtApiKey); writer.AddPrevalueRow("Show File Meta Data:", this.chkShowMetaData); writer.AddPrevalueHeading("Container Settings", "Enter the property alias of the container datatype or select your default container from the dropdown"); writer.AddPrevalueRow("Default Container Property Alias:", this.txtDefaultAlias); writer.AddPrevalueRow("Default Container:", this.ddlDefaultContainer); }