| Javascript Class |
Namespace: Adf.Web.Controls
The Javascript type exposes the following members.
| Name | Description | |
|---|---|---|
| Javascript |
初始化
|
| 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.) |
| Name | Description | |
|---|---|---|
| AccessKey |
获取或设置使您得以快速导航到 Web 服务器控件的访问键。
(Inherited from WebControl.) | |
| Adapter |
获取控件的浏览器特定适配器。
(Inherited from Control.) | |
| AppRelativeTemplateSourceDirectory |
获取或设置包含该控件的 Page 或 UserControl 对象的应用程序相对虚拟目录。
(Inherited from Control.) | |
| Attributes |
获取与控件的属性不对应的任意特性(只用于呈现)的集合。
(Inherited from WebControl.) | |
| BackColor |
获取或设置 Web 服务器控件的背景色。
(Inherited from WebControl.) | |
| BindingContainer |
获取包含该控件的数据绑定的控件。
(Inherited from Control.) | |
| Body |
获取Script的内容
| |
| BorderColor |
获取或设置 Web 控件的边框颜色。
(Inherited from WebControl.) | |
| BorderStyle |
获取或设置 Web 服务器控件的边框样式。
(Inherited from WebControl.) | |
| BorderWidth |
获取或设置 Web 服务器控件的边框宽度。
(Inherited from WebControl.) | |
| CharSet |
获取或设置连接字符集
| |
| ChildControlsCreated |
获取一个值,该值指示是否已创建服务器控件的子控件。
(Inherited from Control.) | |
| ClientID |
获取由 ASP.NET 生成的服务器控件标识符。
(Inherited from Control.) | |
| ClientIDSeparator |
获取一个字符值,该值表示 ClientID 属性中使用的分隔符字符。
(Inherited from Control.) | |
| Context |
为当前 Web 请求获取与服务器控件关联的 HttpContext 对象。
(Inherited from Control.) | |
| Controls |
获取 ControlCollection 对象,该对象表示 UI 层次结构中指定服务器控件的子控件。
(Inherited from Control.) | |
| ControlStyle |
获取 Web 服务器控件的样式。此属性主要由控件开发人员使用。
(Inherited from WebControl.) | |
| ControlStyleCreated |
获取一个值,该值指示是否已为 ControlStyle 属性创建了 Style 对象。此属性主要由控件开发人员使用。
(Inherited from WebControl.) | |
| CssClass |
获取或设置由 Web 服务器控件在客户端呈现的级联样式表 (CSS) 类。
(Inherited from WebControl.) | |
| DesignMode |
获取一个值,该值指示是否正在使用设计图面上的一个控件。
(Inherited from Control.) | |
| Enabled |
获取或设置一个值,该值指示是否启用 Web 服务器控件。
(Inherited from WebControl.) | |
| EnableTheming |
获取或设置一个值,该值指示是否对此控件应用主题。
(Inherited from WebControl.) | |
| EnableViewState |
获取或设置一个值,该值指示服务器控件是否向发出请求的客户端保持自己的视图状态以及它所包含的任何子控件的视图状态。
(Inherited from Control.) | |
| Events |
获取控件的事件处理程序委托列表。此属性为只读。
(Inherited from Control.) | |
| Font |
获取与 Web 服务器控件关联的字体属性。
(Inherited from WebControl.) | |
| ForeColor |
获取或设置 Web 服务器控件的前景色(通常是文本颜色)。
(Inherited from WebControl.) | |
| Function |
获取或设置函数名称,注:此属性设置后将使所有脚本均包含在这个函数中,如须在内容中增加函数,请使用AppendFunction与AppendEndFunction
| |
| HasAttributes |
获取一个值,该值指示控件是否具有属性集。
(Inherited from WebControl.) | |
| HasChildViewState |
获取一个值,该值指示当前服务器控件的子控件是否具有任何已保存的视图状态设置。
(Inherited from Control.) | |
| Height |
获取或设置 Web 服务器控件的高度。
(Inherited from WebControl.) | |
| ID |
获取或设置分配给服务器控件的编程标识符。
(Inherited from Control.) | |
| IdSeparator |
获取用于分隔控件标识符的字符。
(Inherited from Control.) | |
| IsChildControlStateCleared |
获取一个值,该值指示该控件中包含的控件是否具有控件状态。
(Inherited from Control.) | |
| IsEnabled |
获取一个值,该值指示是否启用控件。
(Inherited from WebControl.) | |
| IsTrackingViewState |
获取一个值,用于指示服务器控件是否会将更改保存到其视图状态中。
(Inherited from Control.) | |
| IsViewStateEnabled |
获取一个值,该值指示是否为该控件启用了视图状态。
(Inherited from Control.) | |
| LoadViewStateByID |
获取一个值,该值指示控件是否通过 ID 而不是索引参与加载其视图状态。
(Inherited from Control.) | |
| NamingContainer |
获取对服务器控件的命名容器的引用,此引用创建唯一的命名空间,以区分具有相同 ID 属性值的服务器控件。
(Inherited from Control.) | |
| Page |
获取对包含服务器控件的 Page 实例的引用。
(Inherited from Control.) | |
| Parent |
获取对页 UI 层次结构中服务器控件的父控件的引用。
(Inherited from Control.) | |
| Site |
获取容器信息,该容器在呈现于设计图面上时承载当前控件。
(Inherited from Control.) | |
| SkinID |
获取或设置要应用于控件的外观。
(Inherited from WebControl.) | |
| Src |
获取或设置连接串
| |
| Style |
获取将在 Web 服务器控件的外部标记上呈现为样式属性的文本属性的集合。
(Inherited from WebControl.) | |
| TabIndex |
获取或设置 Web 服务器控件的选项卡索引。
(Inherited from WebControl.) | |
| TagKey |
获取与此 Web 服务器控件相对应的 HtmlTextWriterTag 值。此属性主要由控件开发人员使用。
(Inherited from WebControl.) | |
| TagName |
获取控件标记的名称。此属性主要由控件开发人员使用。
(Inherited from WebControl.) | |
| TemplateControl |
获取或设置对包含该控件的模板的引用。
(Inherited from Control.) | |
| TemplateSourceDirectory |
获取包含当前服务器控件的 Page 或 UserControl 的虚拟目录。
(Inherited from Control.) | |
| ToolTip |
获取或设置当鼠标指针悬停在 Web 服务器控件上时显示的文本。
(Inherited from WebControl.) | |
| Type |
获取或设置类别
| |
| UniqueID |
获取服务器控件的唯一的、以分层形式限定的标识符。
(Inherited from Control.) | |
| ViewState |
获取状态信息的字典,这些信息使您可以在同一页的多个请求间保存和还原服务器控件的视图状态。
(Inherited from Control.) | |
| ViewStateIgnoresCase |
获取一个值,该值指示 StateBag 对象是否不区分大小写。
(Inherited from Control.) | |
| Visible |
获取或设置一个值,该值指示服务器控件是否作为 UI 呈现在页上。
(Inherited from Control.) | |
| Width |
获取或设置 Web 服务器控件的宽度。
(Inherited from WebControl.) |
| Name | Description | |
|---|---|---|
| DataBinding |
当服务器控件绑定到数据源时发生。
(Inherited from Control.) | |
| Disposed |
当从内存释放服务器控件时发生,这是请求 ASP.NET 页时服务器控件生存期的最后阶段。
(Inherited from Control.) | |
| Init |
当服务器控件初始化时发生;初始化是控件生存期的第一步。
(Inherited from Control.) | |
| Load |
当服务器控件加载到 Page 对象中时发生。
(Inherited from Control.) | |
| PreRender |
在加载 Control 对象之后、呈现之前发生。
(Inherited from Control.) | |
| Unload |
当服务器控件从内存中卸载时发生。
(Inherited from Control.) |