November Happy Hour will be moved to Thursday December 5th.

Class ScriptUserControl

Inheritance
System.Object
ScriptUserControl
Implements
System.Web.UI.IScriptControl
System.Web.UI.IPostBackDataHandler
System.Web.UI.ICallbackEventHandler
Namespace: AjaxControlToolkit
Assembly: AjaxControlToolkit.dll
Version: 13.30.0
Syntax
[ClientScriptResource(null, "AjaxControlToolkit.ExtenderBase.BaseScripts.js")]
public class ScriptUserControl : UserControl, IScriptControl, IControlResolver, IPostBackDataHandler, ICallbackEventHandler, IClientStateManager

Constructors

ScriptUserControl()

Declaration
protected ScriptUserControl()

ScriptUserControl(Boolean)

Declaration
protected ScriptUserControl(bool enableClientState)
Parameters
Type Name Description
System.Boolean enableClientState

ScriptUserControl(Boolean, String)

Declaration
protected ScriptUserControl(bool enableClientState, string tag)
Parameters
Type Name Description
System.Boolean enableClientState
System.String tag

ScriptUserControl(Boolean, HtmlTextWriterTag)

Declaration
protected ScriptUserControl(bool enableClientState, HtmlTextWriterTag tag)
Parameters
Type Name Description
System.Boolean enableClientState
System.Web.UI.HtmlTextWriterTag tag

ScriptUserControl(String)

Declaration
protected ScriptUserControl(string tag)
Parameters
Type Name Description
System.String tag

ScriptUserControl(HtmlTextWriterTag)

Declaration
public ScriptUserControl(HtmlTextWriterTag tag)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriterTag tag

Properties

BackColor

Declaration
public virtual Color BackColor { get; set; }
Property Value
Type Description
System.Drawing.Color

BorderColor

Declaration
public virtual Color BorderColor { get; set; }
Property Value
Type Description
System.Drawing.Color

BorderStyle

Declaration
public virtual BorderStyle BorderStyle { get; set; }
Property Value
Type Description
System.Web.UI.WebControls.BorderStyle

BorderWidth

Declaration
public virtual Unit BorderWidth { get; set; }
Property Value
Type Description
System.Web.UI.WebControls.Unit

ClientControlType

Declaration
protected virtual string ClientControlType { get; }
Property Value
Type Description
System.String

ClientStateFieldID

Declaration
protected string ClientStateFieldID { get; }
Property Value
Type Description
System.String

ControlStyle

Declaration
public Style ControlStyle { get; }
Property Value
Type Description
System.Web.UI.WebControls.Style

ControlStyleCreated

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

CssClass

Declaration
public virtual string CssClass { get; set; }
Property Value
Type Description
System.String

Font

Declaration
public virtual FontInfo Font { get; }
Property Value
Type Description
System.Web.UI.WebControls.FontInfo

ForeColor

Declaration
public virtual Color ForeColor { get; set; }
Property Value
Type Description
System.Drawing.Color

Height

Declaration
public virtual Unit Height { get; set; }
Property Value
Type Description
System.Web.UI.WebControls.Unit

ScriptManager

Declaration
protected ScriptManager ScriptManager { get; }
Property Value
Type Description
System.Web.UI.ScriptManager

ScriptPath

Declaration
public virtual string ScriptPath { get; set; }
Property Value
Type Description
System.String

Style

Declaration
public CssStyleCollection Style { get; }
Property Value
Type Description
System.Web.UI.CssStyleCollection

SupportsClientState

Declaration
protected virtual bool SupportsClientState { get; }
Property Value
Type Description
System.Boolean

TagKey

Declaration
protected virtual HtmlTextWriterTag TagKey { get; }
Property Value
Type Description
System.Web.UI.HtmlTextWriterTag

TagName

Declaration
protected virtual string TagName { get; }
Property Value
Type Description
System.String

Width

Declaration
public virtual Unit Width { get; set; }
Property Value
Type Description
System.Web.UI.WebControls.Unit

Methods

AddAttributesToRender(HtmlTextWriter)

Declaration
protected virtual void AddAttributesToRender(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

CreateControlStyle()

Declaration
protected virtual Style CreateControlStyle()
Returns
Type Description
System.Web.UI.WebControls.Style

DescribeComponent(ScriptComponentDescriptor)

Declaration
protected virtual void DescribeComponent(ScriptComponentDescriptor descriptor)
Parameters
Type Name Description
System.Web.UI.ScriptComponentDescriptor descriptor

FindControl(String)

Declaration
public override Control FindControl(string id)
Parameters
Type Name Description
System.String id
Returns
Type Description
System.Web.UI.Control

GetCallbackResult()

Declaration
protected virtual string GetCallbackResult()
Returns
Type Description
System.String

GetScriptDescriptors()

Declaration
protected virtual IEnumerable<ScriptDescriptor> GetScriptDescriptors()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Web.UI.ScriptDescriptor>

GetScriptReferences()

Declaration
protected virtual IEnumerable<ScriptReference> GetScriptReferences()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Web.UI.ScriptReference>

LoadClientState(String)

Declaration
protected virtual void LoadClientState(string clientState)
Parameters
Type Name Description
System.String clientState

LoadPostData(String, NameValueCollection)

Declaration
protected virtual bool LoadPostData(string postDataKey, NameValueCollection postCollection)
Parameters
Type Name Description
System.String postDataKey
System.Collections.Specialized.NameValueCollection postCollection
Returns
Type Description
System.Boolean

OnLoad(EventArgs)

Declaration
protected override void OnLoad(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

OnPreRender(EventArgs)

Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

RaiseCallbackEvent(String)

Declaration
protected virtual void RaiseCallbackEvent(string eventArgument)
Parameters
Type Name Description
System.String eventArgument

RaisePostDataChangedEvent()

Declaration
protected virtual void RaisePostDataChangedEvent()

Render(HtmlTextWriter)

Declaration
protected override void Render(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

RenderBeginTag(HtmlTextWriter)

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

RenderContents(HtmlTextWriter)

Declaration
protected virtual void RenderContents(HtmlTextWriter writer)
Parameters
Type Name Description
System.Web.UI.HtmlTextWriter writer

RenderEndTag(HtmlTextWriter)

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

ResolveControl(String)

Declaration
public Control ResolveControl(string controlId)
Parameters
Type Name Description
System.String controlId
Returns
Type Description
System.Web.UI.Control

SaveClientState()

Declaration
protected virtual string SaveClientState()
Returns
Type Description
System.String

SaveViewState()

Declaration
protected override object SaveViewState()
Returns
Type Description
System.Object

Explicit Interface Implementations

IClientStateManager.LoadClientState(String)

Declaration
void IClientStateManager.LoadClientState(string clientState)
Parameters
Type Name Description
System.String clientState

IClientStateManager.SaveClientState()

Declaration
string IClientStateManager.SaveClientState()
Returns
Type Description
System.String

IClientStateManager.SupportsClientState

Declaration
bool IClientStateManager.SupportsClientState { get; }
Returns
Type Description
System.Boolean

Implements

System.Web.UI.IScriptControl
System.Web.UI.IPostBackDataHandler
System.Web.UI.ICallbackEventHandler