Class WebControlAdapterExtender

Inheritance
System.Object
WebControlAdapterExtender
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Website.Controls.Adapters
Assembly: Mediachase.Commerce.Website.dll
Version: 10.8.0
Syntax
public class WebControlAdapterExtender

Constructors

WebControlAdapterExtender(WebControl)

Declaration
public WebControlAdapterExtender(WebControl adaptedControl)
Parameters
Type Name Description
System.Web.UI.WebControls.WebControl adaptedControl

Properties

AdaptedControl

Declaration
public WebControl AdaptedControl { get; }
Property Value
Type Description
System.Web.UI.WebControls.WebControl

AdapterEnabled

Declaration
public bool AdapterEnabled { get; }
Property Value
Type Description
System.Boolean

AutoAccessKey

Declaration
public bool AutoAccessKey { get; }
Property Value
Type Description
System.Boolean

Methods

MakeChildId(String)

Declaration
public string MakeChildId(string postfix)
Parameters
Type Name Description
System.String postfix
Returns
Type Description
System.String

MakeIdWithButtonType(String, ButtonType)

Declaration
public static string MakeIdWithButtonType(string id, ButtonType type)
Parameters
Type Name Description
System.String id
System.Web.UI.WebControls.ButtonType type
Returns
Type Description
System.String

RaiseAdaptedEvent(String, EventArgs)

Declaration
public void RaiseAdaptedEvent(string eventName, EventArgs e)
Parameters
Type Name Description
System.String eventName
System.EventArgs e

RegisterScripts()

Declaration
public void RegisterScripts()

RemoveProblemChildren(Control, List<ControlRestorationInfo>)

Declaration
public static void RemoveProblemChildren(Control ctrl, List<ControlRestorationInfo> stashedControls)
Parameters
Type Name Description
System.Web.UI.Control ctrl
System.Collections.Generic.List<ControlRestorationInfo> stashedControls

RemoveProblemTypes(ControlCollection, List<ControlRestorationInfo>)

Declaration
public static void RemoveProblemTypes(ControlCollection coll, List<ControlRestorationInfo> stashedControls)
Parameters
Type Name Description
System.Web.UI.ControlCollection coll
System.Collections.Generic.List<ControlRestorationInfo> stashedControls

RenderBeginTag(HtmlTextWriter, String)

Declaration
public void RenderBeginTag(HtmlTextWriter writer, string cssClass)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
System.String cssClass

RenderEndTag(HtmlTextWriter)

Declaration
public void RenderEndTag(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

ResolveUrl(String)

Declaration
public string ResolveUrl(string url)
Parameters
Type Name Description
System.String url
Returns
Type Description
System.String

RestoreProblemChildren(List<ControlRestorationInfo>)

Declaration
public static void RestoreProblemChildren(List<ControlRestorationInfo> stashedControls)
Parameters
Type Name Description
System.Collections.Generic.List<ControlRestorationInfo> stashedControls

WriteBeginDiv(HtmlTextWriter, String, String)

Declaration
public static void WriteBeginDiv(HtmlTextWriter writer, string className, string id)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
System.String className
System.String id

WriteCheckBox(HtmlTextWriter, String, String, String, String, String, Boolean)

Declaration
public void WriteCheckBox(HtmlTextWriter writer, string labelClassName, string labelText, string inputClassName, string id, string uniqueID, bool isChecked)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
System.String labelClassName
System.String labelText
System.String inputClassName
System.String id
System.String uniqueID
System.Boolean isChecked

WriteCompareValidator(HtmlTextWriter, CompareValidator, String, String, String, String)

Declaration
public static void WriteCompareValidator(HtmlTextWriter writer, CompareValidator cv, string className, string controlToValidate, string msg, string controlToCompare)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
System.Web.UI.WebControls.CompareValidator cv
System.String className
System.String controlToValidate
System.String msg
System.String controlToCompare

WriteEndDiv(HtmlTextWriter)

Declaration
public static void WriteEndDiv(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

WriteImage(HtmlTextWriter, String, String)

Declaration
public static void WriteImage(HtmlTextWriter writer, string url, string alt)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
System.String url
System.String alt

WriteLabel(HtmlTextWriter, String, String, String)

Declaration
public void WriteLabel(HtmlTextWriter writer, string className, string text, string forId)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
System.String className
System.String text
System.String forId
Declaration
public static void WriteLink(HtmlTextWriter writer, string className, string url, string title, string content)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
System.String className
System.String url
System.String title
System.String content

WriteReadOnlyTextBox(HtmlTextWriter, String, String, String, String)

Declaration
public void WriteReadOnlyTextBox(HtmlTextWriter writer, string labelClassName, string labelText, string inputClassName, string value)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
System.String labelClassName
System.String labelText
System.String inputClassName
System.String value

WriteRegularExpressionValidator(HtmlTextWriter, RegularExpressionValidator, String, String, String, String)

Declaration
public static void WriteRegularExpressionValidator(HtmlTextWriter writer, RegularExpressionValidator rev, string className, string controlToValidate, string msg, string expression)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
System.Web.UI.WebControls.RegularExpressionValidator rev
System.String className
System.String controlToValidate
System.String msg
System.String expression

WriteRequiredFieldValidator(HtmlTextWriter, RequiredFieldValidator, String, String, String)

Declaration
public static void WriteRequiredFieldValidator(HtmlTextWriter writer, RequiredFieldValidator rfv, string className, string controlToValidate, string msg)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
System.Web.UI.WebControls.RequiredFieldValidator rfv
System.String className
System.String controlToValidate
System.String msg

WriteSpan(HtmlTextWriter, String, String)

Declaration
public static void WriteSpan(HtmlTextWriter writer, string className, string content)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
System.String className
System.String content

WriteSubmit(HtmlTextWriter, ButtonType, String, String, String, String, String, String)

Declaration
public void WriteSubmit(HtmlTextWriter writer, ButtonType buttonType, string className, string id, string uniqueId, string imageUrl, string javascript, string text)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
System.Web.UI.WebControls.ButtonType buttonType
System.String className
System.String id
System.String uniqueId
System.String imageUrl
System.String javascript
System.String text

WriteSubmit(HtmlTextWriter, ButtonType, String, String, String, String, String, String, Boolean)

Declaration
public void WriteSubmit(HtmlTextWriter writer, ButtonType buttonType, string className, string id, string uniqueId, string imageUrl, string javascript, string text, bool generateClientId)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
System.Web.UI.WebControls.ButtonType buttonType
System.String className
System.String id
System.String uniqueId
System.String imageUrl
System.String javascript
System.String text
System.Boolean generateClientId

If true, id will be generated using container id and id parameret. Otherwise, id parameter is already clientid and will be used for id of submit control.

WriteTargetAttribute(HtmlTextWriter, String)

Declaration
public static void WriteTargetAttribute(HtmlTextWriter writer, string targetValue)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
System.String targetValue

WriteTextBox(HtmlTextWriter, Boolean, String, String, String, String, String, String)

Declaration
public void WriteTextBox(HtmlTextWriter writer, bool isPassword, string labelClassName, string labelText, string inputClassName, string id, string uniqueId, string value)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer
System.Boolean isPassword
System.String labelClassName
System.String labelText
System.String inputClassName
System.String id
System.String uniqueId
System.String value