Click or drag to resize
Javascript Class
JavaScript Web 控件
Inheritance Hierarchy

Namespace: Adf.Web.Controls
Assembly: Adf.Web (in Adf.Web.dll) Version: 4.1.5463.29815
Syntax
public class Javascript : WebControl

The Javascript type exposes the following members.

Constructors
  NameDescription
Public methodJavascript
初始化
Top
Methods
  NameDescription
Protected methodAddAttributesToRender
重写属性写入
(Overrides WebControlAddAttributesToRender(HtmlTextWriter).)
Protected methodAddedControl
在子控件添加到 Control 对象的 Controls 集合后调用。
(Inherited from Control.)
Protected methodAddParsedSubObject
通知服务器控件某个元素(XML 或 HTML)已经过语法分析,并将该元素添加到服务器控件的 ControlCollection 对象。
(Inherited from Control.)
Public methodAppend
增加控件新内容
Public methodAppendAlert(String)
向控件增加提示消息 alert();
Public methodAppendAlert(String)
向控件增加一组提示消息,消息每组一行
Public methodAppendBack
向控件增加一个历史返回页 history.back()
Public methodAppendConfirm(String)
向控件增加一个询问窗,当客户端用户确定时执行,否则取消执行
Public methodAppendConfirm(String, String, String)
向控件增加一个询问窗
Public methodAppendEndFunction
向内容增加一个函数结束
Public methodAppendFunction
向内容增加一个函数开始
Public methodAppendGoUrl
向控件增加一个转向地址,location.href
Public methodAppendLine
增加控件新内容并自动增加换行符
Public methodAppendNext
向控件增加一个历史前进页 history.go()
Public methodAppendWindowClose
向控件增加一个窗体关闭信息 window.close();
Public methodAppendWrite
向控件增加一个输出document.write();
Public methodApplyStyle
将指定样式的所有非空白元素复制到 Web 控件,覆盖控件的所有现有的样式元素。此方法主要由控件开发人员使用。
(Inherited from WebControl.)
Public methodApplyStyleSheetSkin
将页样式表中定义的样式属性应用到控件。
(Inherited from Control.)
Protected methodBuildProfileTree
收集有关服务器控件的信息并将该信息发送到 Trace 属性,在启用页的跟踪功能时将显示该属性。
(Inherited from Control.)
Public methodClear
清除所增加的所有数据
Protected methodClearChildControlState
删除服务器控件的子控件的控件状态信息。
(Inherited from Control.)
Protected methodClearChildState
删除服务器控件的所有子控件的视图状态和控件状态信息。
(Inherited from Control.)
Protected methodClearChildViewState
删除服务器控件的所有子控件的视图状态信息。
(Inherited from Control.)
Public methodCopyBaseAttributes
Style 对象未封装的属性从指定的 Web 服务器控件复制到从中调用此方法的 Web 服务器控件。此方法主要由控件开发人员使用。
(Inherited from WebControl.)
Protected methodCreateChildControls
由 ASP.NET 页面框架调用,以通知使用基于合成的实现的服务器控件创建它们包含的任何子控件,以便为回发或呈现做准备。
(Inherited from Control.)
Protected methodCreateControlCollection
创建一个新的 ControlCollection 对象来保存服务器控件的子控件(包括文本控件和服务器控件)。
(Inherited from Control.)
Protected methodCreateControlStyle
创建由 WebControl 类在内部用来实现所有与样式有关的属性的样式对象。此方法主要由控件开发人员使用。
(Inherited from WebControl.)
Public methodDataBind
将数据源绑定到被调用的服务器控件及其所有子控件。
(Inherited from Control.)
Protected methodDataBind(Boolean)
将数据源绑定到调用的服务器控件及其所有子控件,同时可以选择引发 DataBinding 事件。
(Inherited from Control.)
Protected methodDataBindChildren
将数据源绑定到服务器控件的子控件。
(Inherited from Control.)
Public methodDispose
使服务器控件得以在从内存中释放之前执行最后的清理操作。
(Inherited from Control.)
Protected methodEnsureChildControls
确定服务器控件是否包含子控件。如果不包含,则创建子控件。
(Inherited from Control.)
Protected methodEnsureID
为尚未分配标识符的控件创建标识符。
(Inherited from Control.)
Public methodEquals
确定指定的 Object 是否等于当前的 Object
(Inherited from Object.)
Protected methodFinalize
允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。
(Inherited from Object.)
Public methodFindControl(String)
在当前的命名容器中搜索带指定 id 参数的服务器控件。
(Inherited from Control.)
Protected methodFindControl(String, Int32)
使用指定的 idpathOffset 参数(该参数有助于搜索)中指定的整数在当前命名容器中搜索服务器控件。不应重写此版本的 FindControl 方法。
(Inherited from Control.)
Public methodFocus
为控件设置输入焦点。
(Inherited from Control.)
Protected methodGetDesignModeState
获取控件的设计时数据。
(Inherited from Control.)
Public methodGetHashCode
用作特定类型的哈希函数。
(Inherited from Object.)
Public methodGetString
获取控件输出数据
Public methodGetType
获取当前实例的 Type
(Inherited from Object.)
Public methodHasControls
确定服务器控件是否包含任何子控件。
(Inherited from Control.)
Protected methodHasEvents
返回一个值,该值指示是否为控件或任何子控件注册事件。
(Inherited from Control.)
Protected methodIsLiteralContent
确定服务器控件是否只包含文字内容。
(Inherited from Control.)
Protected methodLoadControlState
SaveControlState 方法保存的上一个页请求还原控件状态信息。
(Inherited from Control.)
Protected methodLoadViewState
从用 SaveViewState 方法保存的上一个请求还原视图状态信息。
(Inherited from WebControl.)
Protected methodMapPathSecure
检索虚拟路径(绝对的或相对的)映射到的物理路径。
(Inherited from Control.)
Protected methodMemberwiseClone
创建当前 Object 的浅表副本。
(Inherited from Object.)
Public methodMergeStyle
将指定样式的所有非空白元素复制到 Web 控件,但不覆盖该控件现有的任何样式元素。此方法主要由控件开发人员使用。
(Inherited from WebControl.)
Protected methodOnBubbleEvent
确定服务器控件的事件是否沿页的 UI 服务器控件层次结构向上传递。
(Inherited from Control.)
Protected methodOnDataBinding
引发 DataBinding 事件。
(Inherited from Control.)
Protected methodOnInit
引发 Init 事件。
(Inherited from Control.)
Protected methodOnLoad
引发 Load 事件。
(Inherited from Control.)
Protected methodOnPreRender
引发 PreRender 事件。
(Inherited from Control.)
Protected methodOnUnload
引发 Unload 事件。
(Inherited from Control.)
Protected methodOpenFile
获取用于读取文件的 Stream
(Inherited from Control.)
Protected methodRaiseBubbleEvent
将所有事件源及其信息分配给控件的父级。
(Inherited from Control.)
Protected methodRemovedControl
在子控件从 Control 对象的 Controls 集合中移除后调用。
(Inherited from Control.)
Protected methodRender
将控件呈现给指定的 HTML 编写器。
(Inherited from WebControl.)
Public methodRenderBeginTag
将控件的 HTML 开始标记呈现到指定的编写器中。此方法主要由控件开发人员使用。
(Inherited from WebControl.)
Protected methodRenderChildren
将服务器控件子级的内容输出到提供的 HtmlTextWriter 对象,此对象编写将在客户端呈现的内容。
(Inherited from Control.)
Protected methodRenderContents
重载
(Overrides WebControlRenderContents(HtmlTextWriter).)
Public methodRenderControl(HtmlTextWriter)
将服务器控件的内容输出到所提供的 HtmlTextWriter 对象中;如果已启用跟踪功能,则存储有关控件的跟踪信息。
(Inherited from Control.)
Protected methodRenderControl(HtmlTextWriter, ControlAdapter)
使用提供的 ControlAdapter 对象将服务器控件内容输出到提供的 HtmlTextWriter 对象。
(Inherited from Control.)
Public methodRenderEndTag
将控件的 HTML 结束标记呈现到指定的编写器中。此方法主要由控件开发人员使用。
(Inherited from WebControl.)
Protected methodResolveAdapter
获取负责呈现指定控件的控件适配器。
(Inherited from Control.)
Public methodResolveClientUrl
获取浏览器可以使用的 URL。
(Inherited from Control.)
Public methodResolveUrl
将 URL 转换为在请求客户端可用的 URL。
(Inherited from Control.)
Protected methodSaveControlState
保存自页回发到服务器后发生的任何服务器控件状态更改。
(Inherited from Control.)
Protected methodSaveViewState (Inherited from WebControl.)
Protected methodSetDesignModeState
设置控件的设计时数据。
(Inherited from Control.)
Public methodSetRenderMethodDelegate
分配事件处理程序委托,以将服务器控件及其内容呈现到父控件中。
(Inherited from Control.)
Public methodToString
返回表示当前 ObjectString
(Inherited from Object.)
Protected methodTrackViewState
使控件跟踪其视图状态的更改,以便可以将这些更改存储在对象的 ViewState 属性中。
(Inherited from WebControl.)
Top
Properties
  NameDescription
Public propertyAccessKey
获取或设置使您得以快速导航到 Web 服务器控件的访问键。
(Inherited from WebControl.)
Protected propertyAdapter
获取控件的浏览器特定适配器。
(Inherited from Control.)
Public propertyAppRelativeTemplateSourceDirectory
获取或设置包含该控件的 PageUserControl 对象的应用程序相对虚拟目录。
(Inherited from Control.)
Public propertyAttributes
获取与控件的属性不对应的任意特性(只用于呈现)的集合。
(Inherited from WebControl.)
Public propertyBackColor
获取或设置 Web 服务器控件的背景色。
(Inherited from WebControl.)
Public propertyBindingContainer
获取包含该控件的数据绑定的控件。
(Inherited from Control.)
Public propertyBody
获取Script的内容
Public propertyBorderColor
获取或设置 Web 控件的边框颜色。
(Inherited from WebControl.)
Public propertyBorderStyle
获取或设置 Web 服务器控件的边框样式。
(Inherited from WebControl.)
Public propertyBorderWidth
获取或设置 Web 服务器控件的边框宽度。
(Inherited from WebControl.)
Public propertyCharSet
获取或设置连接字符集
Protected propertyChildControlsCreated
获取一个值,该值指示是否已创建服务器控件的子控件。
(Inherited from Control.)
Public propertyClientID
获取由 ASP.NET 生成的服务器控件标识符。
(Inherited from Control.)
Protected propertyClientIDSeparator
获取一个字符值,该值表示 ClientID 属性中使用的分隔符字符。
(Inherited from Control.)
Protected propertyContext
为当前 Web 请求获取与服务器控件关联的 HttpContext 对象。
(Inherited from Control.)
Public propertyControls
获取 ControlCollection 对象,该对象表示 UI 层次结构中指定服务器控件的子控件。
(Inherited from Control.)
Public propertyControlStyle
获取 Web 服务器控件的样式。此属性主要由控件开发人员使用。
(Inherited from WebControl.)
Public propertyControlStyleCreated
获取一个值,该值指示是否已为 ControlStyle 属性创建了 Style 对象。此属性主要由控件开发人员使用。
(Inherited from WebControl.)
Public propertyCssClass
获取或设置由 Web 服务器控件在客户端呈现的级联样式表 (CSS) 类。
(Inherited from WebControl.)
Protected propertyDesignMode
获取一个值,该值指示是否正在使用设计图面上的一个控件。
(Inherited from Control.)
Public propertyEnabled
获取或设置一个值,该值指示是否启用 Web 服务器控件。
(Inherited from WebControl.)
Public propertyEnableTheming
获取或设置一个值,该值指示是否对此控件应用主题。
(Inherited from WebControl.)
Public propertyEnableViewState
获取或设置一个值,该值指示服务器控件是否向发出请求的客户端保持自己的视图状态以及它所包含的任何子控件的视图状态。
(Inherited from Control.)
Protected propertyEvents
获取控件的事件处理程序委托列表。此属性为只读。
(Inherited from Control.)
Public propertyFont
获取与 Web 服务器控件关联的字体属性。
(Inherited from WebControl.)
Public propertyForeColor
获取或设置 Web 服务器控件的前景色(通常是文本颜色)。
(Inherited from WebControl.)
Public propertyFunction
获取或设置函数名称,注:此属性设置后将使所有脚本均包含在这个函数中,如须在内容中增加函数,请使用AppendFunction与AppendEndFunction
Public propertyHasAttributes
获取一个值,该值指示控件是否具有属性集。
(Inherited from WebControl.)
Protected propertyHasChildViewState
获取一个值,该值指示当前服务器控件的子控件是否具有任何已保存的视图状态设置。
(Inherited from Control.)
Public propertyHeight
获取或设置 Web 服务器控件的高度。
(Inherited from WebControl.)
Public propertyID
获取或设置分配给服务器控件的编程标识符。
(Inherited from Control.)
Protected propertyIdSeparator
获取用于分隔控件标识符的字符。
(Inherited from Control.)
Protected propertyIsChildControlStateCleared
获取一个值,该值指示该控件中包含的控件是否具有控件状态。
(Inherited from Control.)
Protected propertyIsEnabled
获取一个值,该值指示是否启用控件。
(Inherited from WebControl.)
Protected propertyIsTrackingViewState
获取一个值,用于指示服务器控件是否会将更改保存到其视图状态中。
(Inherited from Control.)
Protected propertyIsViewStateEnabled
获取一个值,该值指示是否为该控件启用了视图状态。
(Inherited from Control.)
Protected propertyLoadViewStateByID
获取一个值,该值指示控件是否通过 ID 而不是索引参与加载其视图状态。
(Inherited from Control.)
Public propertyNamingContainer
获取对服务器控件的命名容器的引用,此引用创建唯一的命名空间,以区分具有相同 ID 属性值的服务器控件。
(Inherited from Control.)
Public propertyPage
获取对包含服务器控件的 Page 实例的引用。
(Inherited from Control.)
Public propertyParent
获取对页 UI 层次结构中服务器控件的父控件的引用。
(Inherited from Control.)
Public propertySite
获取容器信息,该容器在呈现于设计图面上时承载当前控件。
(Inherited from Control.)
Public propertySkinID
获取或设置要应用于控件的外观。
(Inherited from WebControl.)
Public propertySrc
获取或设置连接串
Public propertyStyle
获取将在 Web 服务器控件的外部标记上呈现为样式属性的文本属性的集合。
(Inherited from WebControl.)
Public propertyTabIndex
获取或设置 Web 服务器控件的选项卡索引。
(Inherited from WebControl.)
Protected propertyTagKey
获取与此 Web 服务器控件相对应的 HtmlTextWriterTag 值。此属性主要由控件开发人员使用。
(Inherited from WebControl.)
Protected propertyTagName
获取控件标记的名称。此属性主要由控件开发人员使用。
(Inherited from WebControl.)
Public propertyTemplateControl
获取或设置对包含该控件的模板的引用。
(Inherited from Control.)
Public propertyTemplateSourceDirectory
获取包含当前服务器控件的 PageUserControl 的虚拟目录。
(Inherited from Control.)
Public propertyToolTip
获取或设置当鼠标指针悬停在 Web 服务器控件上时显示的文本。
(Inherited from WebControl.)
Public propertyType
获取或设置类别
Public propertyUniqueID
获取服务器控件的唯一的、以分层形式限定的标识符。
(Inherited from Control.)
Protected propertyViewState
获取状态信息的字典,这些信息使您可以在同一页的多个请求间保存和还原服务器控件的视图状态。
(Inherited from Control.)
Protected propertyViewStateIgnoresCase
获取一个值,该值指示 StateBag 对象是否不区分大小写。
(Inherited from Control.)
Public propertyVisible
获取或设置一个值,该值指示服务器控件是否作为 UI 呈现在页上。
(Inherited from Control.)
Public propertyWidth
获取或设置 Web 服务器控件的宽度。
(Inherited from WebControl.)
Top
Events
  NameDescription
Public eventDataBinding
当服务器控件绑定到数据源时发生。
(Inherited from Control.)
Public eventDisposed
当从内存释放服务器控件时发生,这是请求 ASP.NET 页时服务器控件生存期的最后阶段。
(Inherited from Control.)
Public eventInit
当服务器控件初始化时发生;初始化是控件生存期的第一步。
(Inherited from Control.)
Public eventLoad
当服务器控件加载到 Page 对象中时发生。
(Inherited from Control.)
Public eventPreRender
在加载 Control 对象之后、呈现之前发生。
(Inherited from Control.)
Public eventUnload
当服务器控件从内存中卸载时发生。
(Inherited from Control.)
Top
See Also