Click or drag to resize
Javascript Methods

The Javascript type exposes the following members.

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
See Also