| Javascript Methods |
The Javascript type exposes the following members.
| Name | Description | |
|---|---|---|
| AddAttributesToRender |
重写属性写入
(Overrides WebControlAddAttributesToRender(HtmlTextWriter).) | |
| AddedControl | (Inherited from Control.) | |
| AddParsedSubObject |
通知服务器控件某个元素(XML 或 HTML)已经过语法分析,并将该元素添加到服务器控件的 ControlCollection 对象。
(Inherited from Control.) | |
| Append |
增加控件新内容
| |
| AppendAlert(String) |
向控件增加提示消息 alert();
| |
| AppendAlert(String) |
向控件增加一组提示消息,消息每组一行
| |
| AppendBack |
向控件增加一个历史返回页 history.back()
| |
| AppendConfirm(String) |
向控件增加一个询问窗,当客户端用户确定时执行,否则取消执行
| |
| AppendConfirm(String, String, String) |
向控件增加一个询问窗
| |
| AppendEndFunction |
向内容增加一个函数结束
| |
| AppendFunction |
向内容增加一个函数开始
| |
| AppendGoUrl |
向控件增加一个转向地址,location.href
| |
| AppendLine |
增加控件新内容并自动增加换行符
| |
| AppendNext |
向控件增加一个历史前进页 history.go()
| |
| AppendWindowClose |
向控件增加一个窗体关闭信息 window.close();
| |
| AppendWrite |
向控件增加一个输出document.write();
| |
| ApplyStyle |
将指定样式的所有非空白元素复制到 Web 控件,覆盖控件的所有现有的样式元素。此方法主要由控件开发人员使用。
(Inherited from WebControl.) | |
| ApplyStyleSheetSkin |
将页样式表中定义的样式属性应用到控件。
(Inherited from Control.) | |
| BuildProfileTree |
收集有关服务器控件的信息并将该信息发送到 Trace 属性,在启用页的跟踪功能时将显示该属性。
(Inherited from Control.) | |
| Clear |
清除所增加的所有数据
| |
| ClearChildControlState |
删除服务器控件的子控件的控件状态信息。
(Inherited from Control.) | |
| ClearChildState |
删除服务器控件的所有子控件的视图状态和控件状态信息。
(Inherited from Control.) | |
| ClearChildViewState |
删除服务器控件的所有子控件的视图状态信息。
(Inherited from Control.) | |
| CopyBaseAttributes |
将 Style 对象未封装的属性从指定的 Web 服务器控件复制到从中调用此方法的 Web 服务器控件。此方法主要由控件开发人员使用。
(Inherited from WebControl.) | |
| CreateChildControls |
由 ASP.NET 页面框架调用,以通知使用基于合成的实现的服务器控件创建它们包含的任何子控件,以便为回发或呈现做准备。
(Inherited from Control.) | |
| CreateControlCollection |
创建一个新的 ControlCollection 对象来保存服务器控件的子控件(包括文本控件和服务器控件)。
(Inherited from Control.) | |
| CreateControlStyle |
创建由 WebControl 类在内部用来实现所有与样式有关的属性的样式对象。此方法主要由控件开发人员使用。
(Inherited from WebControl.) | |
| DataBind |
将数据源绑定到被调用的服务器控件及其所有子控件。
(Inherited from Control.) | |
| DataBind(Boolean) |
将数据源绑定到调用的服务器控件及其所有子控件,同时可以选择引发 DataBinding 事件。
(Inherited from Control.) | |
| DataBindChildren |
将数据源绑定到服务器控件的子控件。
(Inherited from Control.) | |
| Dispose |
使服务器控件得以在从内存中释放之前执行最后的清理操作。
(Inherited from Control.) | |
| EnsureChildControls |
确定服务器控件是否包含子控件。如果不包含,则创建子控件。
(Inherited from Control.) | |
| EnsureID |
为尚未分配标识符的控件创建标识符。
(Inherited from Control.) | |
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| FindControl(String) |
在当前的命名容器中搜索带指定 id 参数的服务器控件。
(Inherited from Control.) | |
| FindControl(String, Int32) | (Inherited from Control.) | |
| Focus |
为控件设置输入焦点。
(Inherited from Control.) | |
| GetDesignModeState |
获取控件的设计时数据。
(Inherited from Control.) | |
| GetHashCode |
用作特定类型的哈希函数。
(Inherited from Object.) | |
| GetString |
获取控件输出数据
| |
| GetType |
获取当前实例的 Type。
(Inherited from Object.) | |
| HasControls |
确定服务器控件是否包含任何子控件。
(Inherited from Control.) | |
| HasEvents |
返回一个值,该值指示是否为控件或任何子控件注册事件。
(Inherited from Control.) | |
| IsLiteralContent |
确定服务器控件是否只包含文字内容。
(Inherited from Control.) | |
| LoadControlState |
从 SaveControlState 方法保存的上一个页请求还原控件状态信息。
(Inherited from Control.) | |
| LoadViewState |
从用 SaveViewState 方法保存的上一个请求还原视图状态信息。
(Inherited from WebControl.) | |
| MapPathSecure |
检索虚拟路径(绝对的或相对的)映射到的物理路径。
(Inherited from Control.) | |
| MemberwiseClone |
创建当前 Object 的浅表副本。
(Inherited from Object.) | |
| MergeStyle |
将指定样式的所有非空白元素复制到 Web 控件,但不覆盖该控件现有的任何样式元素。此方法主要由控件开发人员使用。
(Inherited from WebControl.) | |
| OnBubbleEvent |
确定服务器控件的事件是否沿页的 UI 服务器控件层次结构向上传递。
(Inherited from Control.) | |
| OnDataBinding |
引发 DataBinding 事件。
(Inherited from Control.) | |
| OnInit |
引发 Init 事件。
(Inherited from Control.) | |
| OnLoad |
引发 Load 事件。
(Inherited from Control.) | |
| OnPreRender |
引发 PreRender 事件。
(Inherited from Control.) | |
| OnUnload |
引发 Unload 事件。
(Inherited from Control.) | |
| OpenFile |
获取用于读取文件的 Stream。
(Inherited from Control.) | |
| RaiseBubbleEvent |
将所有事件源及其信息分配给控件的父级。
(Inherited from Control.) | |
| RemovedControl | (Inherited from Control.) | |
| Render |
将控件呈现给指定的 HTML 编写器。
(Inherited from WebControl.) | |
| RenderBeginTag |
将控件的 HTML 开始标记呈现到指定的编写器中。此方法主要由控件开发人员使用。
(Inherited from WebControl.) | |
| RenderChildren |
将服务器控件子级的内容输出到提供的 HtmlTextWriter 对象,此对象编写将在客户端呈现的内容。
(Inherited from Control.) | |
| RenderContents |
重载
(Overrides WebControlRenderContents(HtmlTextWriter).) | |
| RenderControl(HtmlTextWriter) |
将服务器控件的内容输出到所提供的 HtmlTextWriter 对象中;如果已启用跟踪功能,则存储有关控件的跟踪信息。
(Inherited from Control.) | |
| RenderControl(HtmlTextWriter, ControlAdapter) |
使用提供的 ControlAdapter 对象将服务器控件内容输出到提供的 HtmlTextWriter 对象。
(Inherited from Control.) | |
| RenderEndTag |
将控件的 HTML 结束标记呈现到指定的编写器中。此方法主要由控件开发人员使用。
(Inherited from WebControl.) | |
| ResolveAdapter |
获取负责呈现指定控件的控件适配器。
(Inherited from Control.) | |
| ResolveClientUrl |
获取浏览器可以使用的 URL。
(Inherited from Control.) | |
| ResolveUrl |
将 URL 转换为在请求客户端可用的 URL。
(Inherited from Control.) | |
| SaveControlState |
保存自页回发到服务器后发生的任何服务器控件状态更改。
(Inherited from Control.) | |
| SaveViewState |
保存调用 TrackViewState 方法之后修改的所有状态。
(Inherited from WebControl.) | |
| SetDesignModeState |
设置控件的设计时数据。
(Inherited from Control.) | |
| SetRenderMethodDelegate |
分配事件处理程序委托,以将服务器控件及其内容呈现到父控件中。
(Inherited from Control.) | |
| ToString | (Inherited from Object.) | |
| TrackViewState |
使控件跟踪其视图状态的更改,以便可以将这些更改存储在对象的 ViewState 属性中。
(Inherited from WebControl.) |