本文整理汇总了C#中System.Web.UI.HtmlTextWriter.AddPrevalueHeading方法的典型用法代码示例。如果您正苦于以下问题:C# HtmlTextWriter.AddPrevalueHeading方法的具体用法?C# HtmlTextWriter.AddPrevalueHeading怎么用?C# HtmlTextWriter.AddPrevalueHeading使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Web.UI.HtmlTextWriter
的用法示例。
在下文中一共展示了HtmlTextWriter.AddPrevalueHeading方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RenderContents
/// <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);
}
示例2: Render
/// <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'
}
示例3: RenderContents
/// <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);
}
示例4: RenderContents
/// <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:", this.txtUsername);
writer.AddPrevalueRow("API Token:", this.txtApiKey);
writer.AddPrevalueHeading("Container Settings", "Select your default container from the dropdown");
writer.AddPrevalueRow("Default Container <em>(optional)</em>:", this.ddlDefaultContainer);
}
示例5: RenderContents
/// <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:", this.txtUsername);
writer.AddPrevalueRow("API Token:", this.txtApiKey);
writer.AddPrevalueRow("Show Meta Data:", this.chkShowMetaData);
}
示例6: RenderContents
/// <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);
}
示例7: RenderContents
/// <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:", this.txtUsername);
writer.AddPrevalueRow("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);
}