[普通]Page 类

作者(passion) 阅读(1437次) 评论(0) 分类( ASP.NET)

表示从 ASP.NET Web 应用程序的宿主服务器请求的 .aspx 文件(又称为 Web 窗体页)。

 

命名空间:  System.Web.UI
程序集:  System.Web(在 System.Web.dll 中)

 

Page 类型公开以下成员。

 
 
名称说明
Adapter获取控件的浏览器特定适配器。 (继承自 Control。)
ApplicationHttpApplicationState object for the current Web request." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">为当前 Web 请求获取 HttpApplicationState 对象。
AppRelativeTemplateSourceDirectoryPage or UserControl object that contains this control." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取或设置包含该控件的 PageUserControl 对象的应用程序相对虚拟目录。 (继承自Control。)
AppRelativeVirtualPath获取或设置从中解析和编译控件的文件的相对于应用程序的虚拟目录路径。 (继承自TemplateControl。)
AspCompatMode基础结构。设置一个值,它指示页是否可在单线程单元 (STA) 线程上执行。
AsyncMode基础结构。设置一个指示对页进行同步还是异步处理的值。
AsyncTimeout基础结构。获取或设置一个值,它指示处理异步任务时使用的超时间隔。
AutoHandlers基础结构。 已过时。AutoHandlers property has been deprecated in ASP.NET NET 2.0." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">在 ASP.NET NET 2.0 中,AutoHandlers 属性已被否决。 它是由生成的类使用的,不应在代码中使用。 (继承自 TemplateControl。)
AutoPostBackControl获取或设置页中用于执行回发的控件。
BindingContainer基础结构。获取包含该控件的数据绑定的控件。 (继承自 Control。)
Buffer基础结构。设置指示是否对页输出进行缓冲处理的值。
CacheCache object associated with the application in which the page resides." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取与该页驻留的应用程序关联的 Cache 对象。
ChildControlsCreated获取一个值,该值指示是否已创建服务器控件的子控件。 (继承自 Control。)
ClientID获取由 ASP.NET 生成的 HTML 标记的控件 ID。 (继承自 Control。)
ClientIDModeClientID property." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取或设置用于生成 ClientID 属性值的算法。 (继承自 Control。)
ClientIDSeparatorClientID property." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取一个字符值,该值表示 ClientID 属性中使用的分隔符字符。 (继承自 Control。)
ClientQueryString获取请求的 URL 的查询字符串部分。
ClientScriptClientScriptManager object used to manage, register, and add script to the page." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取用于管理脚本、注册脚本和向页添加脚本的 ClientScriptManager 对象。
ClientTarget获取或设置一个值,该值使您得以重写对浏览器功能的自动检测,并指定针对特定的浏览器客户端页的呈现方式。
CodePage基础结构。Page." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">设置当前 Page 的代码页标识符。
ContentType基础结构。HttpResponse object associated with the page." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">设置与页关联的 HttpResponse 对象的 HTTP MIME 类型。
ContextHttpContext object associated with the page." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取与该页关联的 HttpContext 对象。 (重写 Control.Context。)
ControlsControlCollection object that represents the child controls for a specified server control in the UI hierarchy." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取 ControlCollection 对象,该对象表示 UI 层次结构中指定服务器控件的子控件。 (继承自 Control。)
Culture基础结构。Thread object associated with the page." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">设置与页关联的 Thread 对象的区域性 ID。
DataItemContainerIDataItemContainer." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">如果命名容器实现 IDataItemContainer,则获取对命名容器的引用。 (继承自 Control。)
DataKeysContainerIDataKeysControl." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">如果命名容器实现 IDataKeysControl,则获取对命名容器的引用。 (继承自 Control。)
DesignMode获取一个值,该值指示是否正在使用设计图面上的一个控件。 (继承自 Control。)
EnableEventValidation获取或设置一个值,该值指示页面验证回发事件,还是验证回调事件。
EnableThemingTemplateControl class. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取或设置一个布尔值,该值指示主题是否应用于派生自 TemplateControl 类的控件。 (继承自 TemplateControl。)
EnableViewState获取或设置一个值,该值指示当前页请求结束时该页是否保持其视图状态以及它包含的任何服务器控件的视图状态。 (重写 Control.EnableViewState。)
EnableViewStateMac获取或设置一个值,该值指示从客户端回发页时,ASP.NET 是否应在页的视图状态下检查消息身份验证代码 (MAC)。
ErrorPage获取或设置错误页,在发生未处理的页异常的事件时请求浏览器将被重定向到该页。
Events获取控件的事件处理程序委托列表。 此属性为只读。 (继承自 Control。)
FileDependencies基础结构。 已过时。HttpResponse object is dependent upon." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">设置当前的 HttpResponse 对象所依赖的文件的数组。
Form获取页的 HTML 窗体。
HasChildViewState获取一个值,该值指示当前服务器控件的子控件是否具有任何已保存的视图状态设置。 (继承自 Control。)
Headerhead element is defined with a runat=server in the page declaration." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">在页声明中用 runat=server 定义了 head 元素的情况下获取页的文档标头。
IDPage class." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取或设置 Page 类的特定实例的标识符。 (重写 Control.ID。)
IdSeparator基础结构。获取在为页上的控件构造唯一 ID 时用于分隔控件标识符的字符串。
IsAsync获取一个值,该值指示是否异步处理页。
IsCallback获取一个值,该值指示页请求是否是回调的结果。
IsChildControlStateCleared获取一个值,该值指示该控件中包含的控件是否具有控件状态。 (继承自 Control。)
IsCrossPagePostBack获取一个值,该值指示跨页回发中是否涉及该页。
IsPostBack获取一个值,该值指示页是第一次呈现还是为了响应回发而加载。
IsPostBackEventControlRegistered获取一个值,该值指示页中执行回发的控件是否经过注册。
IsReusable基础结构。Page object can be reused." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取一个值,该值指示 Page 对象是否可重用。
IsTrackingViewState获取一个值,用于指示服务器控件是否会将更改保存到其视图状态中。 (继承自 Control。)
IsValid获取一个值,该值指示页验证是否成功。
IsViewStateEnabled获取一个值,该值指示是否为该控件启用了视图状态。 (继承自 Control。)
Items获取存储在页上下文中的对象的列表。
LCID基础结构。Thread object associated with the page." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">设置与页关联的 Thread 对象的区域设置标识符。
LoadViewStateByIDID instead of index. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取一个值,该值指示控件是否通过 ID 而不是索引参与加载其视图状态。 (继承自Control。)
MaintainScrollPositionOnPostBack获取或设置一个值,该值指示回发后是否将用户返回到客户端浏览器中的同一位置。 SmartNavigation property." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">此属性替换已过时的 SmartNavigation 属性。
Master获取确定页的整体外观的母版页。
MasterPageFile获取或设置母版页的虚拟路径。
MaxPageStateFieldLength获取或设置页状态字段的最大长度。
MetaDescriptionmeta element." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取或设置“描述”meta 元素的内容。
MetaKeywordsmeta element." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取或设置“关键字”meta 元素的内容。
NamingContainerControl.ID property value." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取对服务器控件的命名容器的引用,此引用创建唯一的命名空间,以区分具有相同Control.ID 属性值的服务器控件。 (继承自 Control。)
PagePage instance that contains the server control." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取对包含服务器控件的 Page 实例的引用。 (继承自 Control。)
PageAdapter获取为特定的请求浏览器呈现页的适配器。
PageStatePersisterPageStatePersister object associated with the page." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取与该页关联的 PageStatePersister 对象。
Parent获取对页 UI 层次结构中服务器控件的父控件的引用。 (继承自 Control。)
PreviousPage获取向当前页传输控件的页。
RenderingCompatibility获取一个值,该值指定呈现的 HTML 将与之兼容的 ASP.NET 版本。 (继承自 Control。)
RequestHttpRequest object for the requested page." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取请求的页的 HttpRequest 对象。
ResponseHttpResponse object associated with the Page object." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取与该 Page 对象关联的 HttpResponse 对象。 该对象使您得以将 HTTP 响应数据发送到客户端,并包含有关该响应的信息。
ResponseEncoding基础结构。HttpResponse object." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">设置当前的 HttpResponse 对象的编码语言。
RouteDataRequestContext.RouteData value of the current System.Web.Routing.RequestContext instance." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取当前 System.Web.Routing.RequestContext 实例的 RequestContext.RouteData 值。
ServerServer object, which is an instance of the HttpServerUtility class." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取 Server 对象,它是 HttpServerUtility 类的实例。
SessionSession object provided by ASP.NET." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取 ASP.NET 提供的当前 Session 对象。
Site获取容器信息,该容器在呈现于设计图面上时承载当前控件。 (继承自 Control。)
SkinID获取或设置要应用于控件的外观。 (继承自 Control。)
SmartNavigation已过时。获取或设置指示是否启用智能导航的值。 此属性已被否决。
StyleSheetTheme获取或设置页面生命周期早期适用于页面的主题的名称。
SupportAutoEvents基础结构。TemplateControl control supports automatic events." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取一个值,该值指示 TemplateControl 控件是否支持自动事件。 (继承自TemplateControl。)
TemplateControl获取或设置对包含该控件的模板的引用。 (继承自 Control。)
TemplateSourceDirectoryPage or UserControl that contains the current server control." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取包含当前服务器控件的 PageUserControl 的虚拟目录。 (继承自 Control。)
Theme获取或设置页主题的名称。
Title获取或设置页的标题。
TraceTraceContext object for the current Web request." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">为当前 Web 请求获取 TraceContext 对象。
TraceEnabled基础结构。Page object." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">设置一个值,该值指示是否为 Page 对象启用跟踪。
TraceModeValue基础结构。设置跟踪语句在页中的显示模式。
TransactionMode基础结构。设置该页的事务支持的级别。
UICulture基础结构。Thread object associated with the page." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">设置与页关联的 Thread 对象的用户界面 (UI) ID。
UniqueFilePathSuffix获取要追加到用于缓存浏览器的文件路径的唯一后缀。
UniqueID获取服务器控件的唯一的、以分层形式限定的标识符。 (继承自 Control。)
User获取有关发出页请求的用户的信息。
Validators获取请求的页上包含的全部验证控件的集合。
ViewState获取状态信息的字典,这些信息使您可以在同一页的多个请求间保存和还原服务器控件的视图状态。 (继承自 Control。)
ViewStateEncryptionMode获取或设置视图状态的加密模式。
ViewStateIgnoresCaseStateBag object is case-insensitive." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取一个值,该值指示 StateBag 对象是否不区分大小写。 (继承自 Control。)
ViewStateMode获取或设置此控件的视图状态模式。 (继承自 Control。)
ViewStateUserKey将一个标识符分配给与当前页关联的视图状态变量中的单个用户。
VisiblePage object is rendered." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取或设置指示是否呈现 Page 对象的值。 (重写 Control.Visible。)
页首
方法
 
 
显示:
 名称说明
受保护的方法AddContentTemplate基础结构。在页初始化过程中调用,用于创建传递给母版页的内容(来自内容控件)的集合,前提是当前页或母版页引用母版页。
受保护的方法AddedControlControls collection of the Control object." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">在子控件添加到 Control 对象的 Controls 集合后调用。 (继承自 Control。)
公共方法AddOnPreRenderCompleteAsync(BeginEventHandler, EndEventHandler)为异步页注册不需要状态信息的开始和结束事件处理程序委托。
公共方法AddOnPreRenderCompleteAsync(BeginEventHandler, EndEventHandler, Object)为异步页注册开始和结束事件处理程序委托。
受保护的方法AddParsedSubObjectControlCollection object." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">通知服务器控件某个元素(XML 或 HTML)已经过语法分析,并将该元素添加到服务器控件的 ControlCollection 对象。 (继承自 Control。)
受保护的方法AddWrappedFileDependencies基础结构。添加组成当前页的依赖文件的列表。 此方法由 ASP.NET 页框架在内部使用,不应从代码直接使用。
公共方法ApplyStyleSheetSkin将页样式表中定义的样式属性应用到控件。 (继承自 Control。)
受保护的方法AspCompatBeginProcessRequest基础结构。启动对 Active Server Page (ASP) 资源的请求。 提供此方法是为了与旧式 ASP 应用程序兼容。
受保护的方法AspCompatEndProcessRequest基础结构。终止对 Active Server Page (ASP) 资源的请求。 提供此方法是为了与旧式 ASP 应用程序兼容。
受保护的方法AsyncPageBeginProcessRequest基础结构。开始处理异步页请求。
受保护的方法AsyncPageEndProcessRequest基础结构。结束处理异步页请求。
受保护的方法BuildProfileTree基础结构。Trace property to be displayed when tracing is enabled for the page." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">收集有关服务器控件的信息并将该信息发送到 Trace 属性,在启用页的跟踪功能时将显示该属性。 (继承自 Control。)
受保护的方法ClearCachedClientID基础结构。ClientID value to null." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">将缓存的 ClientID 值设置为 null。 (继承自 Control。)
受保护的方法ClearChildControlState删除服务器控件的子控件的控件状态信息。 (继承自 Control。)
受保护的方法ClearChildState删除服务器控件的所有子控件的视图状态和控件状态信息。 (继承自Control。)
受保护的方法ClearChildViewState删除服务器控件的所有子控件的视图状态信息。 (继承自 Control。)
受保护的方法ClearEffectiveClientIDMode基础结构。ClientIDMode property of the current control instance and of any child controls to Inherit." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">将当前控件实例和任何子控件的 ClientIDMode 属性设置为Inherit。 (继承自 Control。)
受保护的方法Construct执行设计时逻辑。 (继承自 TemplateControl。)
受保护的方法CreateChildControls由 ASP.NET 页面框架调用,以通知使用基于合成的实现的服务器控件创建它们包含的任何子控件,以便为回发或呈现做准备。 (继承自 Control。)
受保护的方法CreateControlCollectionControlCollection object to hold the child controls (both literal and server) of the server control." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">创建一个新的 ControlCollection 对象来保存服务器控件的子控件(包括文本控件和服务器控件)。 (继承自 Control。)
受保护的方法CreateHtmlTextWriterHtmlTextWriter object to render the page's content." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">创建 HtmlTextWriter 对象以呈现该页的内容。
公共方法静态成员CreateHtmlTextWriterFromType基础结构。HtmlTextWriter object to render the page's content." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">创建指定的 HtmlTextWriter 对象以呈现该页的内容。
受保护的方法CreateResourceBasedLiteralControl基础结构。访问存储在资源中的字符串。 CreateResourceBasedLiteralControl method is not intended for use from within your code." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">CreateResourceBasedLiteralControl方法并不应从代码中使用。 (继承自 TemplateControl。)
公共方法DataBind()将数据源绑定到被调用的服务器控件及其所有子控件。 (继承自 Control。)
受保护的方法DataBind(Boolean)DataBinding event. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">将数据源绑定到调用的服务器控件及其所有子控件,同时可以选择引发DataBinding 事件。 (继承自 Control。)
受保护的方法DataBindChildren将数据源绑定到服务器控件的子控件。 (继承自 Control。)
公共方法DesignerInitialize基础结构。Page class that is required by RAD designers." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">执行 RAD 设计器所需的 Page 类的实例的任何初始化。 此方法仅在设计时使用。
受保护的方法DeterminePostBackModeNameValueCollection of data posted back to the page using either a POST or a GET command. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">返回使用 POST 或 GET 命令回发到页的数据的 NameValueCollection
公共方法Dispose使服务器控件得以在从内存中释放之前执行最后的清理操作。 (继承自Control。)
受保护的方法EnsureChildControls确定服务器控件是否包含子控件。 如果不包含,则创建子控件。 (继承自Control。)
受保护的方法EnsureID为尚未分配标识符的控件创建标识符。 (继承自 Control。)
公共方法Equals(Object)Object is equal to the current Object." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">确定指定的 Object 是否等于当前的 Object。 (继承自 Object。)
受保护的方法Eval(String)计算数据绑定表达式。 (继承自 TemplateControl。)
受保护的方法Eval(String, String)使用用于显示结果的指定格式字符串计算数据绑定表达式。 (继承自TemplateControl。)
公共方法ExecuteRegisteredAsyncTasks开始执行异步任务。
受保护的方法Finalize允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自Object。)
公共方法FindControl(String)在页命名容器中搜索带指定标识符的服务器控件。 (重写Control.FindControl(String)。)
受保护的方法FindControl(String, Int32)基础结构。id and an integer, specified in the pathOffset parameter, which aids in the search." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">使用指定的 idpathOffset 参数(该参数有助于搜索)中指定的整数在当前命名容器中搜索服务器控件。 FindControl method." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">不应重写此版本的 FindControl 方法。(继承自 Control。)
公共方法Focus为控件设置输入焦点。 (继承自 Control。)
受保护的方法FrameworkInitialize在页生成过程中根据页的声明性特性初始化控件树。 (重写TemplateControl.FrameworkInitialize()。)
公共方法GetDataItem获取位于数据绑定上下文堆栈顶部的数据项。
受保护的方法GetDesignModeState基础结构。获取控件的设计时数据。 (继承自 Control。)
受保护的方法GetGlobalResourceObject(String, String)ClassKey and ResourceKey properties. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">根据指定的 ClassKeyResourceKey 属性,获取应用程序级别资源对象。(继承自 TemplateControl。)
受保护的方法GetGlobalResourceObject(String, String, Type, String)ClassKey and ResourceKey properties, object type, and property name of the resource." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">根据资源的指定 ClassKeyResourceKey 属性、对象类型和属性名称获取应用程序级别的资源对象。 (继承自 TemplateControl。)
公共方法GetHashCode用作特定类型的哈希函数。 (继承自 Object。)
受保护的方法GetLocalResourceObject(String)ResourceKey property." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">根据指定的 ResourceKey 属性获取页级别的资源对象。 (继承自TemplateControl。)
受保护的方法GetLocalResourceObject(String, Type, String)ResourceKey property, object type, and property name." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">根据指定的 ResourceKey 属性、对象类型和属性名称获取页级别的资源对象。(继承自 TemplateControl。)
公共方法GetPostBackClientEvent已过时。获取一个引用,客户端事件可使用该引用以指定的事件参数回发给服务器的指定控件。
公共方法GetPostBackClientHyperlink已过时。javascript: appended to the beginning of it, that can be used in a client event to post back to the server for the specified control and with the specified event arguments." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取一个引用,并在其开头附加 javascript:,可以在客户端事件中使用该引用,并将该引用与指定的事件参数一起使用,以便回发到指定控件的服务器。
公共方法GetPostBackEventReference(Control)已过时。返回一个可以在客户端事件中使用的字符串,以便回发到服务器。 Control object." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">该引用字符串由指定的 Control 对象定义。
公共方法GetPostBackEventReference(Control, String)已过时。返回一个可以在客户端事件中使用的字符串,以便回发到服务器。 该引用字符串由处理回发的指定控件和一个附加事件信息的字符串参数定义。
公共方法GetRouteUrl(Object)获取与一组路由参数对应的 URL。 (继承自 Control。)
公共方法GetRouteUrl(RouteValueDictionary)获取与一组路由参数对应的 URL。 (继承自 Control。)
公共方法GetRouteUrl(String, Object)获取与一组路由参数以及某个路由名称对应的 URL。 (继承自 Control。)
公共方法GetRouteUrl(String, RouteValueDictionary)获取与一组路由参数以及某个路由名称对应的 URL。 (继承自 Control。)
公共方法GetTypeType of the current instance." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取当前实例的 Type。 (继承自 Object。)
公共方法GetTypeHashCode基础结构。Page objects that are generated at run time." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">检索由运行时生成的 Page 对象生成的哈希代码。 Page object's control hierarchy." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">这种哈希代码对于Page 对象的控件层次结构是唯一的。
公共方法GetUniqueIDRelativeToUniqueID property of the specified control." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">返回指定控件的 UniqueID 属性的前缀部分。 (继承自 Control。)
公共方法GetValidators返回指定验证组的控件验证程序的集合。
受保护的方法GetWrappedFileDependencies基础结构。返回与虚拟文件位置列表对应的物理文件名列表。
公共方法HasControls确定服务器控件是否包含任何子控件。 (继承自 Control。)
受保护的方法HasEvents返回一个值,该值指示是否为控件或任何子控件注册事件。 (继承自Control。)
受保护的方法InitializeCultureCulture and UICulture for the current thread of the page." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">为页的当前线程设置 CultureUICulture
受保护的方法InitOutputCache(OutputCacheParameters)基础结构。OutputCacheParameters object." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">根据 OutputCacheParameters 对象初始化当前页请求的输出缓存。
受保护的方法InitOutputCache(Int32, String, String, OutputCacheLocation, String)基础结构。初始化当前页请求的输出缓存。
受保护的方法InitOutputCache(Int32, String, String, String, OutputCacheLocation, String)基础结构。初始化当前页请求的输出缓存。
公共方法IsClientScriptBlockRegistered已过时。确定具有指定关键字的客户端脚本块是否已向页注册。
受保护的方法IsLiteralContent基础结构。确定服务器控件是否只包含文字内容。 (继承自 Control。)
公共方法IsStartupScriptRegistered已过时。Page object." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">确定 Page 对象是否注册了客户端启动脚本。
公共方法LoadControl(String)Control object from a file based on a specified virtual path." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">根据指定的虚拟路径从文件加载 Control 对象。 (继承自TemplateControl。)
公共方法LoadControl(Type, Object[])Control object based on a specified type and constructor parameters." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">根据指定类型和构造函数参数加载 Control 对象。 (继承自TemplateControl。)
受保护的方法LoadControlStateSaveControlState method." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">从 SaveControlState 方法保存的上一个页请求还原控件状态信息。 (继承自Control。)
受保护的方法LoadPageStateFromPersistenceMediumPage object. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">将所有保存的视图状态信息加载到 Page 对象。
公共方法LoadTemplateITemplate interface from an external file." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">从外部文件获取 ITemplate 接口的实例。 (继承自 TemplateControl。)
受保护的方法LoadViewStateSaveViewState method." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">从 SaveViewState 方法保存的上一个页请求还原视图状态信息。 (继承自Control。)
公共方法MapPath检索虚拟路径(绝对的或相对的)或应用程序相关的路径映射到的物理路径。
受保护的方法MapPathSecure检索虚拟路径(绝对的或相对的)映射到的物理路径。 (继承自 Control。)
受保护的方法MemberwiseCloneObject." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">创建当前 Object 的浅表副本。 (继承自 Object。)
受保护的方法OnAbortTransactionAbortTransaction event." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">引发 AbortTransaction 事件。 (继承自 TemplateControl。)
受保护的方法OnBubbleEvent确定服务器控件的事件是否沿页的 UI 服务器控件层次结构向上传递。 (继承自Control。)
受保护的方法OnCommitTransactionCommitTransaction event." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">引发 CommitTransaction 事件。 (继承自 TemplateControl。)
受保护的方法OnDataBindingDataBinding event." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">引发 DataBinding 事件。 (继承自 Control。)
受保护的方法OnErrorError event." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">引发 Error 事件。 (继承自 TemplateControl。)
受保护的方法OnInitInit event to initialize the page." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">引发 Init 事件以对页进行初始化。 (重写 Control.OnInit(EventArgs)。)
受保护的方法OnInitCompleteInitComplete event after page initialization." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">在页初始化后引发 InitComplete 事件。
受保护的方法OnLoadLoad event." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">引发 Load 事件。 (继承自 Control。)
受保护的方法OnLoadCompleteLoadComplete event at the end of the page load stage." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">在页加载阶段结束时引发 LoadComplete 事件。
受保护的方法OnPreInitPreInit event at the beginning of page initialization." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">在页初始化开始时引发 PreInit 事件。
受保护的方法OnPreLoadPreLoad event after postback data is loaded into the page server controls but before the OnLoad event. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">在回发数据已加载到页服务器控件之后但在 OnLoad 事件之前,引发 PreLoad事件。
受保护的方法OnPreRenderPreRender event." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">引发 PreRender 事件。 (继承自 Control。)
受保护的方法OnPreRenderCompletePreRenderComplete event after the OnPreRenderComplete event and before the page is rendered." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">在 OnPreRenderComplete 事件之后但在呈现页之前引发 PreRenderComplete事件。
受保护的方法OnSaveStateCompleteSaveStateComplete event after the page state has been saved to the persistence medium." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">在已将页状态保存到持久性介质中之后引发 SaveStateComplete 事件。
受保护的方法OnUnloadUnload event." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">引发 Unload 事件。 (继承自 Control。)
受保护的方法OpenFileStream used to read a file." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">获取用于读取文件的 Stream。 (继承自 Control。)
公共方法ParseControl(String)Control object on the Web Forms page or user control." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">将输入字符串分析为 Web 窗体页或用户控件上的 Control 对象。 (继承自TemplateControl。)
公共方法ParseControl(String, Boolean)Control object on the ASP.NET Web page or user control." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">将输入字符串分析为 ASP.NET 网页或用户控件上的 Control 对象。 (继承自TemplateControl。)
公共方法ProcessRequest基础结构。Page object, such as the Context, Request, Response, and Application properties." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">设置 Page 对象的内部服务器对象,如ContextRequestResponseApplication 属性。
受保护的方法RaiseBubbleEvent将所有事件源及其信息分配给控件的父级。 (继承自 Control。)
受保护的方法RaisePostBackEvent通知引起回发的服务器控件:它应处理传入的回发事件。
公共方法ReadStringResource()基础结构。读取字符串资源。 ReadStringResource method is not intended for use from within your code." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">ReadStringResource 方法并不是为了在您的代码中使用而设计的。 (继承自 TemplateControl。)
公共方法RegisterArrayDeclaration已过时。声明一个值,该值在页呈现时声明为 ECMAScript 数组声明。
公共方法RegisterAsyncTask向页注册新的异步任务。
公共方法RegisterClientScriptBlock已过时。向响应发出客户端脚本块。
公共方法RegisterHiddenField已过时。使服务器控件能够在窗体上自动注册隐藏字段。 Page object when the HtmlForm server control is rendered." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">呈现 HtmlForm 服务器控件时,将该字段发送到 Page 对象。
公共方法RegisterOnSubmitStatement已过时。OnSubmit event." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">使页能够访问客户端 OnSubmit 事件。 脚本应该是注册在其他地方的对客户端代码的函数调用。
公共方法RegisterRequiresControlState将控件注册为具有持久性控件状态的控件。
公共方法RegisterRequiresPostBack将控件注册为要求在页回发至服务器时进行回发处理的控件。
公共方法RegisterRequiresRaiseEventPage object." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">将 ASP.NET 服务器控件注册为需要在 Page 对象上处理控件时引发事件的控件。
公共方法RegisterRequiresViewStateEncryption向页将控件注册为需要视图状态加密的控件。
公共方法RegisterStartupScript已过时。在页响应中发出客户端脚本块。
公共方法RegisterViewStateHandler如果调用,则保持页视图状态。
受保护的方法RemovedControlControls collection of the Control object." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">在子控件从 Control 对象的 Controls 集合中移除后调用。 (继承自Control。)
受保护的方法RenderHtmlTextWriter object and calls on the child controls of the Page to render." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">初始化 HtmlTextWriter 对象并调用 Page 的子控件进行呈现。 (重写Control.Render(HtmlTextWriter)。)
受保护的方法RenderChildrenHtmlTextWriter object, which writes the content to be rendered on the client." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">将服务器控件子级的内容输出到提供的 HtmlTextWriter 对象,此对象编写将在客户端呈现的内容。 (继承自 Control。)
公共方法RenderControl(HtmlTextWriter)HtmlTextWriter object and stores tracing information about the control if tracing is enabled." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">将服务器控件的内容输出到所提供的 HtmlTextWriter 对象中;如果已启用跟踪功能,则存储有关控件的跟踪信息。 (继承自 Control。)
受保护的方法RenderControl(HtmlTextWriter, ControlAdapter)HtmlTextWriter object using a provided ControlAdapter object." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">使用提供的 ControlAdapter 对象将服务器控件内容输出到提供的HtmlTextWriter 对象。 (继承自 Control。)
公共方法RequiresControlStateControl object is registered to participate in control state management." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">确定是否注册指定的 Control 对象以参与控件状态管理。
受保护的方法ResolveAdapter获取负责呈现指定控件的控件适配器。 (继承自 Control。)
公共方法ResolveClientUrl获取浏览器可以使用的 URL。 (继承自 Control。)
公共方法ResolveUrl将 URL 转换为在请求客户端可用的 URL。 (继承自 Control。)
受保护的方法SaveControlState保存自页回发到服务器后发生的任何服务器控件状态更改。 (继承自Control。)
受保护的方法SavePageStateToPersistenceMedium保存页的所有视图状态信息和控件状态信息。
受保护的方法SaveViewState保存自页回发到服务器后发生的任何服务器控件视图状态更改。 (继承自Control。)
受保护的方法SetDesignModeState设置控件的设计时数据。 (继承自 Control。)
公共方法SetFocus(Control)将浏览器焦点设置为指定控件。
公共方法SetFocus(String)将浏览器焦点设置为具有指定标识符的控件。
公共方法SetRenderMethodDelegate基础结构。分配事件处理程序委托,以将服务器控件及其内容呈现到父控件中。(继承自 Control。)
受保护的方法SetStringResourcePointer基础结构。设置指向字符串资源的指针。 SetStringResourcePointer method is used by generated classes and is not intended for use from within your code." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">SetStringResourcePointer 方法是由生成的类使用的,并且不应从代码中使用。 (继承自 TemplateControl。)
公共方法TestDeviceFilter返回一个布尔值,该值指示是否对该 HTTP 请求应用设备筛选器。 (继承自TemplateControl。)
公共方法ToString返回表示当前对象的字符串。 (继承自 Object。)
受保护的方法TrackViewStateStateBag object." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">导致跟踪服务器控件的视图状态的更改,以便这些更改可以存储到服务器控件的StateBag 对象中。 Control.ViewState property." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">通过 Control.ViewState 属性可访问此对象。 (继承自Control。)
公共方法UnregisterRequiresControlState停止指定控件的控件状态的持久性。
公共方法Validate()指示该页上包含的所有验证控件验证指派给它们的信息。
公共方法Validate(String)指示指定验证组中的验证控件验证指派给它们的信息。
公共方法VerifyRenderingInServerFormHtmlForm control is rendered for the specified ASP.NET server control at run time." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">确认在运行时为指定的 ASP.NET 服务器控件呈现 HtmlForm 控件。
受保护的方法WriteUTF8ResourceString基础结构。HtmlTextWriter control." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">向 HtmlTextWriter 控件写入资源字符串。WriteUTF8ResourceString method is used by generated classes and is not intended for use from within your code." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">WriteUTF8ResourceString 方法是由生成的类使用的,并且不应从代码中使用。(继承自 TemplateControl。)
受保护的方法XPath(String)计算 XPath 数据绑定表达式。 (继承自 TemplateControl。)
受保护的方法XPath(String, String)使用用于显示结果的指定格式字符串来计算 XPath 数据绑定表达式。 (继承自TemplateControl。)
受保护的方法XPath(String, IXmlNamespaceResolver)使用用于命名空间解析的指定前缀和命名空间映射计算 XPath 数据绑定表达式。(继承自 TemplateControl。)
受保护的方法XPath(String, String, IXmlNamespaceResolver)使用用于命名空间解析的指定前缀和命名空间映射以及用于显示结果的指定格式字符串来计算 XPath 数据绑定表达式。 (继承自 TemplateControl。)
受保护的方法XPathSelect(String)IEnumerable interface." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">计算 XPath 数据绑定表达式,并返回实现 IEnumerable 接口的节点集合。 (继承自 TemplateControl。)
受保护的方法XPathSelect(String, IXmlNamespaceResolver)IEnumerable interface." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">使用用于命名空间解析的指定前缀和命名空间映射计算 XPath 数据绑定表达式,并返回实现 IEnumerable 接口的节点集合。 (继承自 TemplateControl。)
页首
显示:
名称说明
AbortTransaction当用户中止事务时发生。 (继承自 TemplateControl。)
CommitTransaction当事务完成时发生。 (继承自 TemplateControl。)
DataBinding当服务器控件绑定到数据源时发生。 (继承自 Control。)
Disposed当从内存释放服务器控件时发生,这是请求 ASP.NET 页时服务器控件生存期的最后阶段。 (继承自 Control。)
Error当引发未经处理的异常时发生。 (继承自 TemplateControl。)
Init当服务器控件初始化时发生;初始化是控件生存期的第一步。 (继承自 Control。)
InitComplete在页初始化完成时发生。
LoadPage object." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">当服务器控件加载到 Page 对象中时发生。 (继承自 Control。)
LoadComplete在页生命周期的加载阶段结束时发生。
PreInit在页初始化开始时发生。
PreLoadLoad event." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">在页 Load 事件之前发生。
PreRenderControl object is loaded but prior to rendering." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">在加载 Control 对象之后、呈现之前发生。 (继承自 Control。)
PreRenderComplete在呈现页内容之前发生。
SaveStateComplete在页已完成对页和页上控件的所有视图状态和控件状态信息的保存后发生。
Unload当服务器控件从内存中卸载时发生。 (继承自 Control。)
页首
显示:
 名称说明
公共扩展方法FindDataSourceControl返回与指定控件的数据控件关联的数据源。 (由 DynamicDataExtensions 定义。)
公共扩展方法FindFieldTemplate返回指定控件的命名容器中指定列的字段模板。 (由 DynamicDataExtensions 定义。)
公共扩展方法FindMetaTable返回包含数据控件的元表对象。 (由 DynamicDataExtensions 定义。)
页首
字段
 
 
显示:
 名称说明
公共字段静态成员postEventArgumentID基础结构。一个定义呈现的页中的 EVENTARGUMENT 隐藏字段的字符串。
公共字段静态成员postEventSourceID基础结构。一个定义呈现的页中的 EVENTTARGET 隐藏字段的字符串。
页首
显示:
 名称说明
显式接口实现私有属性IControlBuilderAccessor.ControlBuilderIControlBuilderAccessor.ControlBuilder. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">有关此成员的说明,请参见 IControlBuilderAccessor.ControlBuilder。 (继承自Control。)
显式接口实现私有方法IControlDesignerAccessor.GetDesignModeStateIControlDesignerAccessor.GetDesignModeState." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">有关此成员的说明,请参见 IControlDesignerAccessor.GetDesignModeState。(继承自 Control。)
显式接口实现私有方法IControlDesignerAccessor.SetDesignModeStateIControlDesignerAccessor.SetDesignModeState. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">有关此成员的说明,请参见 IControlDesignerAccessor.SetDesignModeState。(继承自 Control。)
显式接口实现私有方法IControlDesignerAccessor.SetOwnerControl基础结构。IControlDesignerAccessor.SetOwnerControl. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">有关此成员的说明,请参见IControlDesignerAccessor.SetOwnerControl。 (继承自 Control。)
显式接口实现私有属性IControlDesignerAccessor.UserDataIControlDesignerAccessor.UserData. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">有关此成员的说明,请参见 IControlDesignerAccessor.UserData。 (继承自Control。)
显式接口实现私有属性IDataBindingsAccessor.DataBindingsIDataBindingsAccessor.DataBindings. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">有关此成员的说明,请参见 IDataBindingsAccessor.DataBindings。 (继承自Control。)
显式接口实现私有属性IDataBindingsAccessor.HasDataBindingsIDataBindingsAccessor.HasDataBindings. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">有关此成员的说明,请参见 IDataBindingsAccessor.HasDataBindings。 (继承自 Control。)
显式接口实现私有属性IExpressionsAccessor.ExpressionsIExpressionsAccessor.Expressions. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">有关此成员的说明,请参见 IExpressionsAccessor.Expressions。 (继承自Control。)
显式接口实现私有属性IExpressionsAccessor.HasExpressionsIExpressionsAccessor.HasExpressions. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">有关此成员的说明,请参见 IExpressionsAccessor.HasExpressions。 (继承自Control。)
显式接口实现私有方法IFilterResolutionService.CompareFilters基础结构。返回一个值,该值指示两个指定的设备筛选器之间是否存在父/子关系。 (继承自 TemplateControl。)
显式接口实现私有方法IFilterResolutionService.EvaluateFilter基础结构。返回一个值,该值指示指定筛选器是否是当前筛选器对象的类型。(继承自 TemplateControl。)
显式接口实现私有方法IParserAccessor.AddParsedSubObjectIParserAccessor.AddParsedSubObject. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">有关此成员的说明,请参见 IParserAccessor.AddParsedSubObject。 (继承自Control。)
页首
备注
 
 

Page class is associated with files that have an .aspx extension." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">Page 类与扩展名为 .aspx 的文件相关联。 Page objects and cached in server memory." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">这些文件在运行时被编译为 Page 对象,并被缓存在服务器内存中。

如果要使用代码隐藏技术创建 Web 窗体页,请从该类派生。 应用程序快速开发 (RAD) 设计器(如 Microsoft Visual Studio)自动使用此模型创建 Web 窗体页。

Page object serves as the naming container for all server controls in a page, except those that implement the INamingContainer interface or are child controls of controls that implement this interface." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">Page 对象充当页中所有服务器控件(实现 INamingContainer 接口的控件或实现此接口的控件的子控件除外)的命名容器。

Page class is a control that acts as the user interface for your Web application, and as such should be scrutinized to make sure best practices for writing secure code and securing applications are followed." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">Page 类是一个用作 Web 应用程序的用户界面的控件,因此应对这样的类进行仔细检查以确保遵循编写安全代码和保证应用程序安全的最佳做法。 Overview of Web Application Security Threats, Security Policy Best Practices, and Key Security Concepts." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">有关这些主题的常规信息,请参见 Web 应用程序安全威胁概述安全策略最佳实施策略安全性的基础概念Securing Standard Controls, How to: Display Safe Error Messages, How to: Protect Against Script Exploits in a Web Application by Applying HTML Encoding to Strings, and Introduction to the Validation Controls." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">有关更具体的信息,请参见 保证标准控件的安全如何:显示安全错误信息如何:通过对字符串应用 HTML 编码在 Web 应用程序中防止脚本侵入Introduction to the Validation Controls

TopicLocation
演练:为移动设备创建网页在 Visual Studio 中构建 ASP .NET Web 应用程序
如何:确定调用 ASP.NET 网页的方式生成 ASP .NET Web 应用程序
如何:通过遍历控件集合定位页上的 Web 窗体控件生成 ASP .NET Web 应用程序
如何:确定调用 ASP.NET 网页的方式在 Visual Studio 中生成 ASP .NET Web 应用程序
如何:通过遍历控件集合定位页上的 Web 窗体控件在 Visual Studio 中生成 ASP .NET Web 应用程序
如何:确定调用 ASP.NET 网页的方式在 Visual Studio 中生成 ASP .NET Web 应用程序
如何:通过遍历控件集合定位页上的 Web 窗体控件在 Visual Studio 中生成 ASP .NET Web 应用程序
示例
 
 

Download." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">与本主题对应的 Visual Studio 网站项目及源代码可以从 Download(下载)网页获得。

Page class is used in the code-behind page model." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">下面的代码示例演示如何在代码隐藏页模型中使用 Page 类。 注意,代码隐藏源文件声明了一个从基页类继承的分部类。 Page, or it can be another class that derives from Page." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">基页类可以是Page,也可以是从 Page 派生的其他类。 另外请注意,分部类允许代码隐藏文件使用页中定义的控件,而无需将其定义为字段成员。

 
using System;

public partial class MyCodeBehindCS : System.Web.UI.Page
{     
    protected void Page_Load(object sender, EventArgs e)
    {

        // Place page-specific code here.


    }

    // Define a handler for the button click.
    protected void SubmitBtn_Click(object sender, EventArgs e)
    {	

        MySpan.InnerHtml = "Hello, " + MyTextBox.Text + ".";

    }
}


下面的代码示例演示与前面的代码隐藏源文件对应的 .aspx 文件。

安全说明安全说明

此示例有一个接受用户输入的文本框,这是一个潜在的安全威胁。 默认情况下,ASP.NET 网页验证用户输入是否不包含脚本或 HTML 元素。 Script Exploits Overview." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">有关更多信息,请参见脚本侵入概述

 
<%@ Page Language="C#" CodeFile="pageexample.aspx.cs" Inherits="MyCodeBehindCS" %>Page Class Example
Name: 
  
  

@ Page directive and use the Inherits and CodeFile attributes to link the code-behind file to the .aspx file." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">必须使用 @ Page 指令并使用 InheritsCodeFile 特性将代码隐藏文件链接至 .aspx 文件。 Inherits attribute indicates the MyCodeBehind class and the CodeFile attribute indicates the path to the language-specific file that contains the class." data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">在此示例中,Inherits 特性指示MyCodeBehind 类,CodeFile 特性指示包含该类的语言特定的文件的路径。

IsPostBack property and the Response property of the Page. " data-mce-style="font-family: 'Microsoft YaHei UI', 'Microsoft YaHei', SimSun, 'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif !important;">下面的代码示例演示单文件页模型以及如何访问 PageIsPostBack 属性和 Response 属性。

 
<%@ Page Language="C#" %>Page Class Example


.NET Framework

受以下版本支持:4、3.5、3.0、2.0、1.1、1.0
平台
 
 

Windows 7, Windows Vista SP1 或更高版本, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008(不支持服务器核心), Windows Server 2008 R2(支持 SP1 或更高版本的服务器核心), Windows Server 2003 SP2

 

 

.NET Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
« 上一篇:wifi共享上网(至尊版wifi)
« 下一篇:ASP.NET附加数据库文件的方式,如何发布到IIS7而不导致SQLServer出错
在这里写下您精彩的评论
  • 微信

  • QQ

  • 支付宝

返回首页
返回首页 img
返回顶部~
返回顶部 img