43 writes to Page
System.Web (42)
UI\WebControls\Adapters\MenuAdapter.cs (15)
156skipLink.Page = Page; 161_menuPanel.Page = Page; 214link.Page = Page; 247skipAnchor.Page = Page; 274expandImage.Page = Page; 327separatorImage.Page = Page; 341itemPanel.Page = Page; 387spacerImage.Page = Page; 401newImage.Page = Page; 445link.Page = Page; 449lbl.Page = Page; 490link.Page = Page; 494lbl.Page = Page; 542separatorImage.Page = Page; 552spacerImage.Page = Page;
UI\WebControls\AdPostCacheSubstitution.cs (1)
27_adRotatorHelper.Page = new Page();
UI\WebControls\LayoutTable.cs (1)
32this.Page = page;
UI\WebControls\LayoutTableCell.cs (1)
22control.Page = Page;
UI\WebControls\Menu.cs (1)
681_panel.Page = Page;
UI\WebParts\CatalogPartChrome.cs (2)
200img.Page = _page; 234label.Page = _page;
UI\WebParts\CatalogZoneBase.cs (3)
601label.Page = Page; 612linkButton.Page = Page; 701label.Page = Page;
UI\WebParts\ConnectionsZone.cs (12)
1396connectConsumerButton.Page = Page; 1417connectProviderButton.Page = Page; 1480label.Page = Page; 1573label.Page = Page; 1696label.Page = Page; 1728label.Page = Page; 1759label.Page = Page; 1909label.Page = Page; 1931label.Page = Page; 1943label.Page = Page; 1953label.Page = Page; 1985label.Page = Page;
UI\WebParts\EditorZoneBase.cs (2)
463label.Page = Page; 481label.Page = Page;
UI\WebParts\ToolZone.cs (2)
341closeButton.Page = Page; 394verbControl.Page = Page;
UI\WebParts\WebPartChrome.cs (1)
573verbControl.Page = _page;
UI\WebParts\ZoneLinkButton.cs (1)
71image.Page = Page;
System.Web.Mobile (1)
UI\MobileControls\Design\PropertyOverridesDialog.cs (1)
716((Control)clone).Page = ((Control)target).Page;
1004 references to Page
System.Web (870)
Compilation\RouteValueExpressionBuilder.cs (1)
48return GetRouteValue(context.TemplateControl.Page, entry.Expression.Trim(), entry.ControlType, entry.Name);
UI\Control.cs (44)
398Page page = Page; 444Page page = Page; 491if (Page != null && SupportsEventValidation) { 492Page.ClientScript.ValidateEvent(uniqueID, eventArgument); 861if (Page != null) { 862return Page.IdSeparator; 896_page = Parent.Page; 909Debug.Assert(Parent == null || Parent.Page == null); 947Page page = Page; 1335if (Page == namingContainer) { 1369if (control.NamingContainer == Page) { 1540if (foundDataItem && (Page != null)) { 1541Page.PushDataBindingContext(dataItem); 1556Page.PopDataBindingContext(); 1720control._page = Page; 1732if ((Page != null) && !DesignMode) { 1733if (Page.ContainsTheme && EnableTheming) { 1734ApplySkin(Page); 1777control._page = Page; 1789if ((Page != null) && !DesignMode) { 1790if (Page.ContainsTheme && EnableTheming) { 1791ApplySkin(Page); 1889if (Page != null) { 1890Page.RegisterRequiresClearChildControlState(this); 1942Page.SetFocus(this); 1957Page page = Page; 2013if (Page != null && Page.IsPostBack) { 2432if(Page != null && Page._registeredControlsRequiringControlState != null && Page._registeredControlsRequiringControlState.Contains(this)) { 2437Page.Trace.AddNewControl(UniqueID, parentId, this.GetType().FullName, viewstatesize, controlstatesize); 2606HttpContext context = (Page == null) ? null : Page._context; 2685Page page = Page; 2868control._page = Page; 2905Page.RegisterRequiresControlState(control); 3017if (DesignMode && Page != null && Page.Site != null) { 3018IUrlResolutionService resolutionService = (IUrlResolutionService)Page.Site.GetService(typeof(IUrlResolutionService)); 3183if (c == null && Page != null) { 3186c = Page.FindControl(id); 3433_occasionalFields.SpacerImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(WebControl), "Spacer.gif"); 3543_page = owner.Page;
UI\ControlAdapter.cs (3)
41return Control.Page; 52if(Control != null && Control.Page != null) 53return Control.Page.PageAdapter;
UI\ControlBuilder.cs (3)
1486uc.InitializeAsUserControl(parent.Page); 2092control.ApplyStyleSheetSkin(TemplateControl.Page); 2419if (containerControl.Page.GetDataItem() == null) {
UI\HtmlControls\HtmlAnchor.cs (7)
199if (CausesValidation && Page.GetValidators(ValidationGroup).Count > 0) { 210if (Page != null && Events[EventServerClick] != null) { 211Page.RegisterPostBackScript(); 214if (CausesValidation && Page.GetValidators(ValidationGroup).Count > 0) { 215Page.RegisterWebFormsScript(); 234string postBackEventReference = Page.ClientScript.GetPostBackEventReference(options, true); 278Page.Validate(ValidationGroup);
UI\HtmlControls\HtmlButton.cs (5)
108if (Page != null && Events[EventServerClick] != null) 109Page.RegisterPostBackScript(); 122if (Page != null && submitsProgramatically) { 125(CausesValidation && Page.GetValidators(ValidationGroup).Count > 0), 162Page.Validate(ValidationGroup);
UI\HtmlControls\HtmlHead.cs (3)
165Page p = Page; 226if ((string)Page.Request.Browser["requiresXhtmlCssSuppression"] != "true") { 334Page page = _owner.Page;
UI\HtmlControls\HtmlInputButton.cs (6)
127if (Page != null && Events[EventServerClick] != null) { 128Page.RegisterPostBackScript(); 147if (Page != null) { 151(CausesValidation && Page.GetValidators(ValidationGroup).Count > 0), 155Page.ClientScript.RegisterForEventValidation(UniqueID); 189Page.Validate(ValidationGroup);
UI\HtmlControls\HtmlInputCheckBox.cs (5)
109if (Page != null && !Disabled) { 110Page.RegisterRequiresPostBack(this); 112Page.RegisterEnabledControl(this); 163if (Page != null) { 164Page.ClientScript.RegisterForEventValidation(RenderedNameAttribute);
UI\HtmlControls\HtmlInputFile.cs (1)
214HtmlForm form = Page.Form;
UI\HtmlControls\HtmlInputGenericControl.cs (2)
71if (!Disabled && Page != null) { 72Page.RegisterEnabledControl(this);
UI\HtmlControls\HtmlInputHidden.cs (4)
96if (Page != null) { 97Page.RegisterEnabledControl(this); 131if (Page != null) { 132Page.ClientScript.RegisterForEventValidation(RenderedNameAttribute);
UI\HtmlControls\HtmlInputImage.cs (7)
223if (Page != null) { 225Page.RegisterRequiresPostBack(this); 227Page.RegisterPostBackScript(); 265Page.Validate(ValidationGroup); 298Page.RegisterRequiresRaiseEvent(this); 334if (Page != null) { 337(CausesValidation && Page.GetValidators(ValidationGroup).Count > 0),
UI\HtmlControls\HtmlInputRadioButton.cs (5)
156if (Page != null && !Disabled) { 157Page.RegisterRequiresPostBack(this); 159Page.RegisterEnabledControl(this); 184if (Page != null) { 185Page.ClientScript.RegisterForEventValidation(Value, RenderedNameAttribute);
UI\HtmlControls\HtmlInputSubmit.cs (2)
66if (Page != null) { 69(CausesValidation && Page.GetValidators(ValidationGroup).Count > 0),
UI\HtmlControls\HtmlInputText.cs (4)
167if (!disabled && Page != null) { 168Page.RegisterEnabledControl(this); 182if (Page != null) { 183Page.ClientScript.RegisterForEventValidation(RenderedNameAttribute);
UI\HtmlControls\HtmlSelect.cs (14)
699if (Page != null) { 700Page.PreLoad += new EventHandler(this.OnPagePreLoad); 701if (!IsViewStateEnabled && Page.IsPostBack) { 711if (Page != null && !_pagePreLoadFired && ViewState[DataBoundViewStateKey] == null) { 716if (!Page.IsPostBack) { 735if (Page != null) { 736Page.PreLoad -= new EventHandler(this.OnPagePreLoad); 741if (!Page.IsPostBack) { 748if (Page.IsPostBack && IsViewStateEnabled && ViewState[DataBoundViewStateKey] == null) { 766if (Page != null && !Disabled) { 768Page.RegisterRequiresPostBack(this); 771Page.RegisterEnabledControl(this); 801if (Page != null) { 802Page.ClientScript.RegisterForEventValidation(RenderedNameAttribute);
UI\HtmlControls\HtmlTextArea.cs (4)
185if (Page != null) { 186Page.ClientScript.RegisterForEventValidation(RenderedNameAttribute); 218if (Page != null) { 219Page.RegisterEnabledControl(this);
UI\HtmlForm.cs (10)
226if (NamingContainer == Page) { 247Page p = Page; 258sb.Append(HttpEncoderUtility.UrlEncodeSpaces(HttpUtility.HtmlAttributeEncode(Page.ClientScript.GetWebResourceUrl(typeof(HtmlForm), "SmartNav.htm")))); 319string queryString = Page.ClientQueryString; 338Page.SetForm(this); 341Page.RegisterViewStateHandler(); 352if (Page.SmartNavigation) { 355Page.ClientScript.RegisterClientScriptResource(typeof(HtmlForm), "SmartNav.js"); 377Page page = Page; 456Page page = Page;
UI\MasterPage.cs (1)
225master.InitializeAsUserControl(owner.Page);
UI\Page.cs (14)
1237if ((Page.Header == null) && (this.ControlState >= ControlState.ChildrenInitialized)) { 1245return Page.Header.Title; 1248if (Page.Header == null) { 1257Page.Header.Title = value; 1269if ((Page.Header == null) && (this.ControlState >= ControlState.ChildrenInitialized)) { 1277return Page.Header.Description; 1280if (Page.Header == null) { 1289Page.Header.Description = value; 1301if ((Page.Header == null) && (this.ControlState >= ControlState.ChildrenInitialized)) { 1309return Page.Header.Keywords; 1312if (Page.Header == null) { 1321Page.Header.Keywords = value; 1367!Page.IsCallback && 6381object scriptManager = Page.Items[scriptManagerType];
UI\PageAdapter.cs (2)
79return Control.Page.DeterminePostBackMode(); 92return Control.Page.DeterminePostBackModeUnvalidated();
UI\PartialCachingControl.cs (24)
126Page.PushCachingControl(this); 128Page.PopCachingControl(); 144Page.RegisterWebFormsScript(); 148Page.RegisterPostBackScript(); 152Page.RegisterFocusScript(); 159Page.ClientScript.RegisterScriptBlock(registerCallData.Key, 164Page.ClientScript.RegisterOnSubmitStatementInternal(registerCallData.Key, 169Page.ClientScript.RegisterArrayDeclaration(registerCallData.StringParam1, 174Page.ClientScript.RegisterHiddenField(registerCallData.StringParam1, 179Page.ClientScript.RegisterExpandoAttribute(registerCallData.StringParam1, 210Page.PushCachingControl(this); 212Page.PopCachingControl(); 222if (_cssStyleString != null && Page.Header != null) { 223Page.Header.RegisterCssStyleString(_cssStyleString); 230Page.PushCachingControl(this); 232Page.PopCachingControl(); 322Page.ClientScript.RegisterForEventValidation(registerCallData.StringParam1, 371Page.PushCachingControl(this); 373Page.PopCachingControl(); 469HttpRequest request = Page.Request; 479reqValCollection = Page.RequestValueCollection; 482reqValCollection = Page.GetCollectionBasedOnMethod(true /*dontReturnNull*/); 514if (NamingContainer == Page) { 804uc.InitializeAsUserControl(Page);
UI\TemplateControl.cs (11)
702uc.InitializeAsUserControl(Page); 745uc.InitializeAsUserControl(control.Page); 802if (Page == null) { 815return DataBinder.Eval(Page.GetDataItem(), expression); 826return DataBinder.Eval(Page.GetDataItem(), expression, format); 837return XPathBinder.Eval(Page.GetDataItem(), xPathExpression); 848return XPathBinder.Eval(Page.GetDataItem(), xPathExpression, resolver); 859return XPathBinder.Eval(Page.GetDataItem(), xPathExpression, format); 870return XPathBinder.Eval(Page.GetDataItem(), xPathExpression, format, resolver); 881return XPathBinder.Select(Page.GetDataItem(), xPathExpression); 892return XPathBinder.Select(Page.GetDataItem(), xPathExpression, resolver);
UI\UserControl.cs (15)
129public HttpApplicationState Application { get { return Page.Application;} } 145public TraceContext Trace { get { return Page.Trace; } } 158public HttpRequest Request { get { return Page.Request; } } 169public HttpResponse Response { get { return Page.Response; } } 179public HttpServerUtility Server { get { return Page.Server; } } 194public Cache Cache { get { return Page.Cache; } } 225public bool IsPostBack { get { return Page.IsPostBack; } } 235public HttpSessionState Session { get { return Page.Session; } } 261if ((Page != null) && (Page.Site != null)) { 262designTime = Page.Site.DesignMode; 405Page.UpdateModel<TModel>(model); 413Page.UpdateModel<TModel>(model, valueProvider); 421return Page.TryUpdateModel<TModel>(model); 430return Page.TryUpdateModel<TModel>(model, valueProvider);
UI\Util.cs (4)
1592string postbackReference = control.Page.ClientScript.GetPostBackEventReference(control, argument, true); 1608control.Page.ClientScript.RegisterForEventValidation(control.UniqueID); 1615injectedOnClick = control.Page.ClientScript.GetPostBackEventReference(control, String.Empty, true); 1619control.Page.ClientScript.RegisterForEventValidation(control.UniqueID);
UI\WebControls\Adapters\MenuAdapter.cs (1)
114Control.Page.RegisterRequiresControlState(Control);
UI\WebControls\AdPostCacheSubstitution.cs (2)
43Debug.Assert(_adRotatorHelper != null && _adRotatorHelper.Page != null); 47HtmlTextWriter htmlWriter = _adRotatorHelper.Page.CreateHtmlTextWriter(stringWriter);
UI\WebControls\AdRotator.cs (3)
391Page.Response.HasCachePolicy && 392(int)Page.Response.Cache.GetCacheability() != (int)HttpCacheabilityLimits.None) { 396adPostCacheSubstitution.RegisterPostCacheCallBack(Context, Page, writer);
UI\WebControls\BaseDataBoundControl.cs (7)
152if (value && _preRendered && IsDataBindingAutomatic && Page != null && !Page.IsCallback) { 255if (Page != null) { 256Page.PreLoad += new EventHandler(this.OnPagePreLoad); 258if (!IsViewStateEnabled && Page.IsPostBack) { 266if (Page != null) { 267Page.PreLoad -= new EventHandler(this.OnPagePreLoad);
UI\WebControls\BaseDataList.cs (9)
577if (Page != null) { 578Page.PreLoad += new EventHandler(this.OnPagePreLoad); 580if (!IsViewStateEnabled && Page.IsPostBack) { 590if (Page != null && !_pagePreLoadFired && ViewState[ItemCountViewStateKey] == null) { 595if (!Page.IsPostBack) { 614if (Page != null) { 615Page.PreLoad -= new EventHandler(this.OnPagePreLoad); 620if (!Page.IsPostBack) { 628if (Page.IsPostBack && IsViewStateEnabled && ViewState[ItemCountViewStateKey] == null) {
UI\WebControls\BaseValidator.cs (19)
68return (Page != null && Page.UnobtrusiveValidationMode != UnobtrusiveValidationMode.None); 394Page page = control.Page; 469Page page = Page; 562Page.Validators.Add(this); 571if (Page != null) { 572Page.Validators.Remove(this); 623if (!Page.IsPartialRenderingSupported) { 624if (Page.ClientScript.IsClientScriptBlockRegistered(typeof(BaseValidator), ValidatorIncludeScriptKey)) { 628Page.ClientScript.RegisterClientScriptResource(typeof(BaseValidator), ValidatorFileName); 629Page.ClientScript.RegisterOnSubmitStatement(typeof(BaseValidator), onSubmitScriptKey, onSubmitScript); 631Page.ClientScript.RegisterStartupScript(typeof(BaseValidator), ValidatorIncludeScriptKey, ValidatorStartupScript, addScriptTags: true); 658if (!Page.IsPartialRenderingSupported) { 659Page.ClientScript.RegisterArrayDeclaration(arrayName, element); 692if (DesignMode || (!preRenderCalled && Page == null)) { 710if (Page != null) { 711Page.VerifyRenderingInServerForm(this); 789Page page = Page; 798Page.SetValidatorInvalidControlFocus(validateId);
UI\WebControls\BulletedList.cs (3)
367if (CausesValidation && Page.GetValidators(ValidationGroup).Count > 0) { 370return Page.ClientScript.GetPostBackClientHyperlink(this, eventArgument, true); 493Page.Validate(ValidationGroup);
UI\WebControls\Button.cs (13)
256if (Page != null) { 257Page.VerifyRenderingInServerForm(this); 302if (Page != null) { 303string reference = Page.ClientScript.GetPostBackEventReference(options, false); 310if (Page != null) { 311Page.ClientScript.RegisterForEventValidation(options); 335if (Page != null) { 336if (CausesValidation && Page.GetValidators(ValidationGroup).Count > 0) { 378if (Page != null && IsEnabled) { 379if ((CausesValidation && Page.GetValidators(ValidationGroup).Count > 0) || 381Page.RegisterWebFormsScript(); 384Page.RegisterPostBackScript(); 416Page.Validate(ValidationGroup);
UI\WebControls\Calendar.cs (9)
941sb.Append(Page.ClientScript.GetPostBackClientHyperlink(this, eventArgument, true)); 1117Page page = Page; 1120selectUrl = Page.ClientScript.GetPostBackClientHyperlink(this, eventArgument, true); 1213if (Page != null) { 1214Page.RegisterPostBackScript(); 1235if (Page != null) { 1236Page.VerifyRenderingInServerForm(this); 1241Page page = Page; 1321writer.Write(Page.ClientScript.GetPostBackClientHyperlink(this, eventArgument, true));
UI\WebControls\ChangePassword.cs (8)
1703if (Page != null && !Page.IsValid) { 1946Page.Response.Redirect(ResolveClientUrl(cancelPageUrl), false); 2000Page.Response.Redirect(ResolveClientUrl(continuePageUrl), false); 2015Page.RegisterRequiresControlState(this); 2073Page.Response.Redirect(ResolveClientUrl(successPageUrl), false); 2085if (Page != null) { 2086Page.VerifyRenderingInServerForm(this);
UI\WebControls\CheckBox.cs (22)
182(autoPostBack == true && ((Page != null) && !Page.ClientSupportsJavaScript))) { 331if (Page != null && IsEnabled) { 333Page.RegisterRequiresPostBack(this); 335Page.RegisterPostBackScript(); 336Page.RegisterFocusScript(); 339if (CausesValidation && Page.GetValidators(ValidationGroup).Count > 0) { 340Page.RegisterWebFormsScript(); 348if ((Page != null) && IsEnabled) { 351Page.RegisterEnabledControl(this); 401if (Page != null) { 402Page.VerifyRenderingInServerForm(this); 532if (AutoPostBack && (Page != null) && Page.ClientSupportsJavaScript) { 536if (CausesValidation && Page.GetValidators(ValidationGroup).Count > 0) { 541if (Page.Form != null) { 547onClick = Util.MergeScript(onClick, Page.ClientScript.GetPostBackEventReference(options, true)); 555if (Page != null) { 556Page.ClientScript.RegisterForEventValidation(this.UniqueID); 629if (AutoPostBack && !Page.IsPostBackEventControlRegistered) { 631Page.AutoPostBackControl = this; 634Page.Validate(ValidationGroup);
UI\WebControls\CheckBoxList.cs (7)
246if (Page != null) { 250Page.RegisterRequiresPostBack(_controlToRepeat); 404if (AutoPostBack && !Page.IsPostBackEventControlRegistered) { 406Page.AutoPostBackControl = this; 409Page.Validate(ValidationGroup); 525_cachedRegisterEnabled = (Page != null) && IsEnabled && (SaveSelectedIndicesViewState == false); 558Page.RegisterEnabledControl(_controlToRepeat);
UI\WebControls\CreateUserWizard.cs (22)
2101if (Page != null && !Page.IsValid) { 2448_createUserStep.ApplyStyleSheetSkin(Page); 2457_completeStep.ApplyStyleSheetSkin(Page); 2597Page.Validators.Remove(confirmPassword); 2602Page.Validators.Remove(passwordRequired); 2607Page.Validators.Remove(passRegExp); 2613if (Page != null) { 2614Page.Validators.Remove(passRegExp); 2624if (Page != null) { 2625Page.Validators.Remove(emailRequired); 2631if (Page != null) { 2632Page.Validators.Remove(emailRegExp); 2639if (Page != null) { 2640Page.Validators.Remove(emailRegExp); 2650if (Page != null) { 2651Page.Validators.Remove(questionRequired); 2658if (Page != null) { 2659Page.Validators.Remove(answerRequired); 2695Page.Response.Redirect(ResolveClientUrl(continuePageUrl), false); 2735e.Cancel = (Page != null && !Page.IsValid);
UI\WebControls\DataBoundControl.cs (4)
386if (Page != null && !_pagePreLoadFired && ViewState[DataBoundViewStateKey] == null) { 391if (!Page.IsPostBack) { 409if (Page != null) { 413if (!Page.IsPostBack) {
UI\WebControls\DataBoundControlHelper.cs (2)
36if (control == control.Page) { 43while (foundControl == null && currentContainer != control.Page) {
UI\WebControls\DataControlButton.cs (1)
50if (Page != null) {
UI\WebControls\DataList.cs (2)
1160if (Page != null && DataKeyField.Length > 0) { 1161Page.RegisterRequiresViewStateEncryption();
UI\WebControls\DetailsView.cs (29)
2163if (EnablePagingCallbacks && (Context != null) && (Page != null) && (Page.RequestInternal != null) && Page.Request.Browser.SupportsCallback && !IsParentedToUpdatePanel) { 2164HttpBrowserCapabilities browserCaps = Page.Request.Browser; 2254IStateFormatter2 formatter = Page.CreateStateFormatter(); 2271if (Page != null) { 2272Page.ClientScript.RegisterForEventValidation(UniqueID, argument); 2492if (causesValidation && Page != null && !Page.IsValid) { 2544if (IsUsingModelBinders && !Page.ModelState.IsValid) { 2612if (causesValidation && Page != null && !Page.IsValid) { 2685if (IsUsingModelBinders && !Page.ModelState.IsValid) { 2876IStateFormatter2 formatter = Page.CreateStateFormatter(); 2968if (Page != null) { 2970Page.RegisterRequiresViewStateEncryption(); 2972Page.RegisterRequiresControlState(this); 3135if (Page != null && !Page.IsCallback && Page.RequestValueCollection != null) { 3137string hiddenFieldState = Page.RequestValueCollection[hiddenFieldID]; 3169if (DetermineRenderClientScript() && Page != null) { 3171ClientScriptManager scriptOM = Page.ClientScript; 3193Page.Validate(_modelValidationGroup); 3194return Page.IsValid; 3383if (Page != null) { 3384Page.VerifyRenderingInServerForm(this); 3414if (causesValidation && Page != null) { 3415Page.Validate(validationGroup);
UI\WebControls\DropDownList.cs (3)
188if (AutoPostBack && !Page.IsPostBackEventControlRegistered) { 190Page.AutoPostBackControl = this; 193Page.Validate(ValidationGroup);
UI\WebControls\FileUpload.cs (7)
194if (Page != null && Page.IsPostBack) { 210if (Page != null && Page.IsPostBack) { 237HtmlForm form = Page.Form; 246if (Page != null) { 247Page.VerifyRenderingInServerForm(this);
UI\WebControls\FormView.cs (15)
2123if (causesValidation && Page != null && !Page.IsValid) { 2176if (IsUsingModelBinders && !Page.ModelState.IsValid) { 2242if (causesValidation && Page != null && !Page.IsValid) { 2314if (IsUsingModelBinders && !Page.ModelState.IsValid) { 2604if (Page != null) { 2606Page.RegisterRequiresViewStateEncryption(); 2608Page.RegisterRequiresControlState(this); 2752Page.Validate(_modelValidationGroup); 2753return Page.IsValid; 2855if (Page != null) { 2856Page.VerifyRenderingInServerForm(this); 2878if (causesValidation && Page != null) { 2879Page.Validate(validationGroup);
UI\WebControls\GridView.cs (25)
1528_stateFormatter = Page.CreateStateFormatter(); 2729if (EnableSortingAndPagingCallbacks && (Context != null) && (Page != null) && (Page.RequestInternal != null) && Page.Request.Browser.SupportsCallback && !IsParentedToUpdatePanel) { 2730HttpBrowserCapabilities browserCaps = Page.Request.Browser; 2797if (Page != null) { 2798Page.ClientScript.RegisterForEventValidation(UniqueID, argument); 3185if (causesValidation && Page != null && !Page.IsValid) { 3254if (IsUsingModelBinders && !Page.ModelState.IsValid) { 3515if (Page == null) { 3638if (Page != null) { 3640Page.RegisterRequiresViewStateEncryption(); 3642Page.RegisterRequiresControlState(this); 3664if (Page != null && !Page.IsCallback && Page.RequestValueCollection != null) { 3666string hiddenFieldState = Page.RequestValueCollection[hiddenFieldID]; 3718if (DetermineRenderClientScript() && Page != null) { 3720ClientScriptManager scriptOM = Page.ClientScript; 3901Page.Validate(_modelValidationGroup); 3902return Page.IsValid; 4181if (Page != null) { 4182Page.VerifyRenderingInServerForm(this); 4213Page.Validate(validationGroup);
UI\WebControls\HiddenField.cs (3)
144if (Page != null) { 145Page.VerifyRenderingInServerForm(this); 146Page.ClientScript.RegisterForEventValidation(uniqueID);
UI\WebControls\HierarchicalDataBoundControl.cs (4)
155if (Page != null && !_pagePreLoadFired && ViewState[DataBoundViewStateKey] == null) { 160if (!Page.IsPostBack) { 178if (Page != null) { 182if (!Page.IsPostBack) {
UI\WebControls\ImageButton.cs (10)
282Page page = Page; 367if (CausesValidation && Page != null && Page.GetValidators(ValidationGroup).Count > 0) { 398if (Page != null) { 399Page.RegisterRequiresRaiseEvent(this); 446if (Page != null) { 447Page.RegisterRequiresPostBack(this); 450((CausesValidation && Page.GetValidators(ValidationGroup).Count > 0) || 452Page.RegisterWebFormsScript(); // VSWhidbey 489577 477Page.Validate(ValidationGroup);
UI\WebControls\ImageMap.cs (3)
212if (Page != null) { 213Page.VerifyRenderingInServerForm(this); 218Page.ClientScript.GetPostBackClientHyperlink(this, eventArgument, true));
UI\WebControls\LayoutTableCell.cs (2)
21if (control.Page == null) { 22control.Page = Page;
UI\WebControls\LinkButton.cs (12)
264if (Page != null) { 265Page.VerifyRenderingInServerForm(this); 295if (effectiveEnabled && Page != null) { 301postBackEventReference = Page.ClientScript.GetPostBackEventReference(options, true); 358if (!DesignMode && Page != null && 359String.Equals(Page.Request.Browser.Browser, "IE", StringComparison.OrdinalIgnoreCase)) { 364if (CausesValidation && Page.GetValidators(ValidationGroup).Count > 0) { 432Page.Validate(ValidationGroup); 442if (Page != null && Enabled) { 443Page.RegisterPostBackScript(); 445if ((CausesValidation && Page.GetValidators(ValidationGroup).Count > 0) || 447Page.RegisterWebFormsScript(); // VSWhidbey 489577
UI\WebControls\Listbox.cs (5)
160if (Page != null && SelectionMode == ListSelectionMode.Multiple && Enabled) { 163Page.RegisterRequiresPostBack(this); 270if (AutoPostBack && !Page.IsPostBackEventControlRegistered) { 272Page.AutoPostBackControl = this; 275Page.Validate(ValidationGroup);
UI\WebControls\ListControl.cs (18)
251(AutoPostBack == true && ((Page != null) && !Page.ClientSupportsJavaScript)) ) { 400bool loaded = Page != null && Page.IsPostBack && _stateLoaded; 497if (Page != null) { 498Page.VerifyRenderingInServerForm(this); 505if (AutoPostBack && (Page != null) && Page.ClientSupportsJavaScript) { 524if (Page.Form != null) { 528onChange = Util.MergeScript(onChange, Page.ClientScript.GetPostBackEventReference(options, true)); 634if (Page != null && IsEnabled) { 636Page.RegisterPostBackScript(); 637Page.RegisterFocusScript(); 640if (CausesValidation && Page.GetValidators(ValidationGroup).Count > 0) { 641Page.RegisterWebFormsScript(); 649Page.RegisterEnabledControl(this); 804if (Page != null) { 805Page.ClientScript.RegisterForEventValidation(UniqueID, li.Value);
UI\WebControls\login.cs (13)
1079if (Page != null && !Page.IsValid) { 1097Page.Response.Redirect(GetRedirectUrl(), false); 1193if (Page.Form != null && String.Equals(Page.Form.Method, "get", StringComparison.OrdinalIgnoreCase)) { 1194return Page.Request.ClientFilePath.VirtualPathString; 1197return Page.Request.RawUrl; 1330TemplateContainer.Visible = (VisibleWhenLoggedIn || !Page.Request.IsAuthenticated || OnLoginPage()); 1343if (!DesignMode && (Page != null)) { 1345((!Page.IsPostBack) && (Page.Request.QueryString[_failureParameterName] != null)); 1363if (Page != null) { 1364Page.VerifyRenderingInServerForm(this);
UI\WebControls\loginstatus.cs (14)
290Page.Response.Clear(); 291Page.Response.StatusCode = 200; 301Page.Response.Redirect(FormsAuthentication.LoginUrl, false); 308if (Page.Form != null && String.Equals(Page.Form.Method, "get", StringComparison.OrdinalIgnoreCase)) { 309Page.Response.Redirect(Page.Request.ClientFilePath.VirtualPathString, false); 312Page.Response.Redirect(Page.Request.RawUrl, false); 324Page.Response.Redirect(url, false); 330Page.Response.Redirect(ResolveClientUrl(NavigateUrl), false); 364LoggedIn = Page.Request.IsAuthenticated; 373if (Page != null) { 374Page.VerifyRenderingInServerForm(this);
UI\WebControls\LoginUtil.cs (2)
113Page page = c.Page; 404LayoutTable table = new LayoutTable(1, 1, Page);
UI\WebControls\LoginView.cs (5)
220Page page = Page; 276if (Page != null) { 277Page.RegisterRequiresControlState(this); 360if (!DesignMode && Page != null && Page.Request.IsAuthenticated) {
UI\WebControls\Menu.cs (7)
681_panel.Page = Page; 716_cachedPopOutImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(Menu), ("Menu_Popout.gif")); 812_cachedScrollDownImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(Menu), ("Menu_ScrollDown.gif")); 859_cachedScrollUpImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(Menu), ("Menu_ScrollUp.gif")); 2203Page.RegisterRequiresControlState(this); 2549if (Page != null) { 2550Page.VerifyRenderingInServerForm(this);
UI\WebControls\MenuItem.cs (13)
667if (_owner.Page != null && _owner.Page.SupportsStyleSheets) { 676if (_owner.Page != null && _owner.Page.SupportsStyleSheets) { 684if (_owner.Page != null && _owner.Page.SupportsStyleSheets) { 722if (_owner.Page != null && _owner.Page.SupportsStyleSheets) { 874if (_owner.Page != null && _owner.Page.SupportsStyleSheets) { 899if (_owner.Page != null && _owner.Page.SupportsStyleSheets) { 937_owner.Page.ClientScript.GetPostBackClientHyperlink(_owner, InternalValuePath, true, true));
UI\WebControls\MenuRendererClassic.cs (18)
23if (Menu.Page == null) { 28if (Menu.Page.Header == null) { 38Menu._isNotIE = (Menu.Page.Request.Browser.MSDomVersion.Major < 4); 40if (Menu.Page.SupportsStyleSheets || (Menu.Page.ScriptManager != null && Menu.Page.ScriptManager.IsInAsyncPostBack)) { 113if (Menu.Page != null && registerScript) { 115Menu.Page.RegisterWebFormsScript(); 117Menu.Page.ClientScript.RegisterClientScriptResource(Menu, typeof(Menu), "Menu.js"); 185if ((Menu.Page.RequestInternal != null) && 186(String.Equals(Menu.Page.Request.Url.Scheme, "https", StringComparison.OrdinalIgnoreCase))) { 191Menu.Page.ClientScript.GetWebResourceUrl(typeof(Menu), "SmartNav.htm"), 197Menu.Page.ClientScript.RegisterStartupScript(Menu, GetType(), 205if (Menu.Page != null && Menu.Page.SupportsStyleSheets) { 207Menu.Page.Header.StyleSheet.CreateStyleRule(style, Menu, "." + name); 225if (Menu.Page != null && Menu.Page.SupportsStyleSheets) {
UI\WebControls\MenuRendererStandards.cs (11)
59if (Menu.Page.ScriptManager != null) { 60Menu.Page.ScriptManager.RegisterClientScriptResource(Menu.Page, typeof(Menu), "MenuStandards.js"); 61Menu.Page.ScriptManager.RegisterStartupScript(Menu, typeof(MenuRendererStandards), key, initScript, false); 64Menu.Page.ClientScript.RegisterClientScriptResource(Menu.Page, typeof(Menu), "MenuStandards.js"); 65Menu.Page.ClientScript.RegisterStartupScript(typeof(MenuRendererStandards), key, initScript); 71Menu.Page.Header.Controls.Add(CreateStyleBlock()); 334return Menu.Page.ClientScript.GetPostBackEventReference(Menu, item.InternalValuePath, true); 359if (Menu.DesignMode || Menu.Page == null) { 363if (Menu.IncludeStyleBlock && Menu.Page.Header == null) {
UI\WebControls\ModelDataSourceView.cs (19)
68if (owner.DataControl.Page != null) { 69owner.DataControl.Page.LoadComplete += OnPageLoadComplete; 320if (!(_owner.DataControl.Page.IsAsync && SynchronizationContextUtil.CurrentMode != SynchronizationContextMode.Legacy)) { 722var syncContext = _owner.DataControl.Page.Context.SyncContext as AspNetSynchronizationContext; 738CancellationTokenSource cancellationTokenSource = _owner.DataControl.Page.CreateCancellationTokenFromAsyncTimeout(); 826CancellationTokenSource cancellationTokenSource = _owner.DataControl.Page.CreateCancellationTokenFromAsyncTimeout(); 857_owner.DataControl.Page.SetActiveValueProvider(null); 860if (_owner.DataControl.Page.ModelState.IsValid) { 874var syncContext = _owner.DataControl.Page.Context.SyncContext as AspNetSynchronizationContext; 891Debug.Assert(_owner.DataControl.Page != null); 893if (_owner.DataControl.Page.ModelState.IsValid) { 908Debug.Assert(_owner.DataControl.Page != null); 910if (_owner.DataControl.Page.ModelState.IsValid) { 963Debug.Assert(_owner.DataControl.Page != null); 972ModelBindingExecutionContext modelBindingExecutionContext = _owner.DataControl.Page.ModelBindingExecutionContext; 989_owner.DataControl.Page.SetActiveValueProvider(dataBoundControlValueProvider); 1005value = new ModelMethodContext(_owner.DataControl.Page); 1014ModelStateDictionary modelState = isPageLoadComplete ? new ModelStateDictionary() : _owner.DataControl.Page.ModelState; 1221_owner.DataControl.Page.SetActiveValueProvider(null);
UI\WebControls\ModelErrorMessage.cs (3)
89if (Page != null && Page.ModelState.TryGetValue(ModelStateKey, out modelState)) { 103Page.SetValidatorInvalidControlFocus(validateId);
UI\WebControls\MultiView.cs (3)
124return (_controlStateApplied || (Page != null && !Page.IsPostBack)); 314Page.RegisterRequiresControlState(this);
UI\WebControls\ObjectDataSource.cs (2)
969if (Page != null) { 970Page.LoadComplete += new EventHandler(LoadCompleteEventHandler);
UI\WebControls\Panel.cs (5)
287(Page != null) && 288(Page.RequestInternal != null) && 289(Page.Request.Browser.EcmaScriptVersion.Major > 0) && 290(Page.Request.Browser.W3CDomVersion.Major > 0)) { 297Page.ClientScript.RegisterDefaultButtonScript(c, writer, true /* UseAddAttribute */);
UI\WebControls\PasswordRecovery.cs (7)
1135if (Page != null && !Page.IsValid) { 1507Page.RegisterRequiresControlState(this); 1508Page.LoadComplete += new EventHandler(OnPageLoadComplete); 1576Page.Response.Redirect(ResolveClientUrl(successPageUrl), false); 1588if (Page != null) { 1589Page.VerifyRenderingInServerForm(this);
UI\WebControls\PopOutPanel.cs (4)
121if ((Page != null) && Page.SupportsStyleSheets) { 168if ((Page != null) && Page.SupportsStyleSheets) {
UI\WebControls\RadioButton.cs (10)
167if (AutoPostBack && !Page.IsPostBackEventControlRegistered) { 169Page.AutoPostBackControl = this; 172Page.Validate(ValidationGroup); 188if (Page != null && !Checked && Enabled) { 189Page.RegisterRequiresPostBack(this); 200if (Page != null) { 201Page.ClientScript.RegisterForEventValidation(UniqueGroupName, ValueAttribute); 217if (AutoPostBack && !Checked && Page != null) { 228if (Page.Form != null) { 232onClick = Util.MergeScript(onClick, Page.ClientScript.GetPostBackEventReference(options));
UI\WebControls\RadioButtonList.cs (9)
289if (AutoPostBack && Page != null && !Page.IsPostBackEventControlRegistered) { 291Page.AutoPostBackControl = this; 294Page.Validate(ValidationGroup); 355if (Page != null) { 356Page.ClientScript.RegisterForEventValidation(UniqueID); 481_cachedRegisterEnabled = (Page != null) && (SaveSelectedIndicesViewState == false); 513if (controlToRepeat.Enabled && _cachedRegisterEnabled && Page != null) { 517Page.RegisterEnabledControl(controlToRepeat);
UI\WebControls\Repeater.cs (9)
880if (Page != null) { 881Page.PreLoad += new EventHandler(this.OnPagePreLoad); 882if (!IsViewStateEnabled && Page.IsPostBack) { 923if (Page != null && !_pagePreLoadFired && ViewState[ItemCountViewStateKey] == null) { 928if (!Page.IsPostBack) { 947if (Page != null) { 948Page.PreLoad -= new EventHandler(this.OnPagePreLoad); 953if (!Page.IsPostBack) { 961if (Page.IsPostBack && IsViewStateEnabled && ViewState[ItemCountViewStateKey] == null) {
UI\WebControls\RouteParameter.cs (1)
97RouteData routeData = control.Page.RouteData;
UI\WebControls\SqlDataSource.cs (2)
1066if (Page != null) { 1067Page.LoadComplete += new EventHandler(LoadCompleteEventHandler);
UI\WebControls\Substitution.cs (1)
124Page.Response.WriteSubstitution(callback);
UI\WebControls\TextBox.cs (5)
382Page page = Page; 612Page page = Page; 687if (AutoPostBack && !Page.IsPostBackEventControlRegistered) { 689Page.AutoPostBackControl = this; 692Page.Validate(ValidationGroup);
UI\WebControls\TreeNode.cs (17)
787if (_owner.Page != null) { 788_owner.Page.ClientScript.RegisterForEventValidation(_owner.UniqueID, 1186if (_owner.Page != null) { 1187href = _owner.Page.ClientScript.GetPostBackClientHyperlink(_owner, 1199if (_owner.Page != null) { 1200href = _owner.Page.ClientScript.GetPostBackClientHyperlink(_owner, "t" + InternalValuePath, true); 1271if (_owner.Page != null && _owner.Page.SupportsStyleSheets && 1284_owner.Page.ClientScript.GetPostBackClientHyperlink(_owner, "t" + InternalValuePath, true, true)); 1316if (_owner.Page != null) { 1317href = _owner.Page.ClientScript.GetPostBackClientHyperlink( 1334if (_owner.Page != null) { 1335string href = _owner.Page.ClientScript.GetPostBackClientHyperlink( 1401if (_owner.Page != null && _owner.Page.SupportsStyleSheets) { 1446if (_owner.Page != null && _owner.Page.SupportsStyleSheets) {
UI\WebControls\TreeView.cs (100)
343_cachedCollapseImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Arrows_Collapse.gif"); 347_cachedCollapseImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Contacts_Collapse.gif"); 351_cachedCollapseImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_XP_Explorer_Collapse.gif"); 355_cachedCollapseImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_MSDN_Collapse.gif"); 359_cachedCollapseImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Windows_Help_Collapse.gif"); 411return (Page != null && 412(Page.SupportsStyleSheets || Page.IsCallback || 413(Page.ScriptManager != null && Page.ScriptManager.IsInAsyncPostBack)) && 486_cachedExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Arrows_Expand.gif"); 490_cachedExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Contacts_Expand.gif"); 494_cachedExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_XP_Explorer_Expand.gif"); 498_cachedExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_MSDN_Expand.gif"); 502_cachedExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Windows_Help_Expand.gif"); 750_cachedNoExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Simple_NoExpand.gif"); 754_cachedNoExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Simple2_NoExpand.gif"); 758_cachedNoExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Arrows_NoExpand.gif"); 762_cachedNoExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Contacts_NoExpand.gif"); 766_cachedNoExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_XP_Explorer_NoExpand.gif"); 770_cachedNoExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_MSDN_NoExpand.gif"); 774_cachedNoExpandImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Windows_Help_NoExpand.gif"); 947(Page != null && !Page.Request.Browser.SupportsCallback)) { 1203if ((value == true) && (Page != null) && Page.IsPostBack && 1303if (Page != null) { 1304Page.VerifyRenderingInServerForm(this); 1698if ((Page == null) || !Page.IsCallback) { 1734HttpBrowserCapabilities caps = Page.Request.Browser; 1735_isNotIE = (Page.Request.Browser.MSDomVersion.Major < 4); 1738if (_hoverNodeStyle != null && Page != null && Page.Header == null) { 1742if (Page != null && (Page.SupportsStyleSheets || 1743Page.IsCallback || (Page.ScriptManager != null && Page.ScriptManager.IsInAsyncPostBack))) { 1912rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList_RootNode.gif"); 1916rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList2_RootNode.gif"); 1920rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList3_RootNode.gif"); 1924rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList4_RootNode.gif"); 1928rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_News_RootNode.gif"); 1932rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Inbox_RootNode.gif"); 1936rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Events_RootNode.gif"); 1940rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_FAQ_RootNode.gif"); 1944rootNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_XP_Explorer_RootNode.gif"); 1963parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList_ParentNode.gif"); 1967parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList2_ParentNode.gif"); 1971parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList3_ParentNode.gif"); 1975parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList4_ParentNode.gif"); 1979parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_News_ParentNode.gif"); 1983parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Inbox_ParentNode.gif"); 1987parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Events_ParentNode.gif"); 1991parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_FAQ_ParentNode.gif"); 1995parentNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_XP_Explorer_ParentNode.gif"); 2015leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList_LeafNode.gif"); 2019leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList2_LeafNode.gif"); 2023leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList3_LeafNode.gif"); 2027leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_BulletedList4_LeafNode.gif"); 2031leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_News_LeafNode.gif"); 2035leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Inbox_LeafNode.gif"); 2039leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Events_LeafNode.gif"); 2043leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_FAQ_LeafNode.gif"); 2047leafNodeImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_XP_Explorer_LeafNode.gif"); 2061ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_NoExpand.gif"); 2075ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_NoExpand.gif"); 2083ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_Expand.gif"); 2097ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_Expand.gif"); 2104ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_Collapse.gif"); 2118ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_Collapse.gif"); 2124ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_I.gif"); 2132ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_R.gif"); 2140ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_RExpand.gif"); 2148ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_RCollapse.gif"); 2156ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_T.gif"); 2164ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_TExpand.gif"); 2172ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_TCollapse.gif"); 2180ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_L.gif"); 2188ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_LExpand.gif"); 2196ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_LCollapse.gif"); 2204ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_Dash.gif"); 2212ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_DashExpand.gif"); 2220ImageUrls[index] = Page.ClientScript.GetWebResourceUrl(typeof(TreeView), "TreeView_Default_DashCollapse.gif"); 2468if ((Page != null) && (Page.RequestInternal != null) && 2568if (Page != null) { 2569if (!Page.IsPostBack && !_dataBound) { 2573Page.RegisterRequiresPostBack(this); 2585ClientScriptManager scriptOM = Page.ClientScript; 2625Page.RegisterWebFormsScript(); 2716IScriptManager scriptManager = Page.ScriptManager; 2819if (Page != null && Page.SupportsStyleSheets) { 2821Page.Header.StyleSheet.CreateStyleRule(style, this, "." + name); 2845if (Page != null) { 2846Page.VerifyRenderingInServerForm(this); 2984if (!Visible && (Page != null) && !Page.IsPostBack) {
UI\WebControls\ValidationSummary.cs (9)
39return (Page != null && Page.UnobtrusiveValidationMode != UnobtrusiveValidationMode.None); 269ValidatorCollection validators = Page.GetValidators(ValidationGroup); 285ModelStateDictionary modelState = Page.ModelState; 327Page page = Page; 339if (!Page.IsPartialRenderingSupported) { 340Page.ClientScript.RegisterArrayDeclaration(arrayName, element); 405if (Page != null) { 406Page.VerifyRenderingInServerForm(this);
UI\WebControls\ValidatorCompatibilityHelper.cs (6)
17Type scriptManagerType = control.Page.ScriptManagerType; 29Type scriptManagerType = control.Page.ScriptManagerType; 41Type scriptManagerType = control.Page.ScriptManagerType; 52Type scriptManagerType = control.Page.ScriptManagerType; 63Type scriptManagerType = control.Page.ScriptManagerType; 74Type scriptManagerType = control.Page.ScriptManagerType;
UI\WebControls\Wizard.cs (12)
1185if (Page != null) { 1186browser = Page.Request.Browser; 1466if (_commandSender != null && !DesignMode && Page != null && !Page.IsValid) { 1762if (_commandSender != null && Page != null && !Page.IsValid) { 1862Page.Response.Redirect(ResolveClientUrl(cancelDestinationUrl), false); 1883Page.Response.Redirect(ResolveClientUrl(finishPageUrl), false); 1899if (Page != null) { 1900Page.RegisterRequiresControlState(this); 1942if (Page != null) { 1943Page.VerifyRenderingInServerForm(this);
UI\WebControls\XmlDataSource.cs (2)
412if (Page != null) { 414sb.Append(Page.GetType().AssemblyQualifiedName);
UI\WebParts\AppearanceEditorPart.cs (2)
232if (Page != null) { 233Page.VerifyRenderingInServerForm(this);
UI\WebParts\BehaviorEditorPart.cs (2)
342if (Page != null) { 343Page.VerifyRenderingInServerForm(this);
UI\WebParts\BlobPersonalizationState.cs (1)
47_isPostRequest = (webPartManager.Page.Request.HttpVerb == HttpVerb.POST);
UI\WebParts\CatalogPartChrome.cs (1)
32_page = zone.Page;
UI\WebParts\CatalogZoneBase.cs (7)
468Page page = Page; 483Page.RegisterRequiresPostBack(this); 508if (Page != null) { 509Page.VerifyRenderingInServerForm(this); 601label.Page = Page; 612linkButton.Page = Page; 701label.Page = Page;
UI\WebParts\ConnectionsZone.cs (19)
661string selectedValue = Page.Request.Form[list.UniqueID]; 745string selectedValue = Page.Request.Form[list.UniqueID]; 1233if (Page != null) { 1234Page.RegisterRequiresControlState(this); 1235Page.PreRenderComplete += new EventHandler(this.OnPagePreRenderComplete); 1359if (Page != null) { 1360Page.VerifyRenderingInServerForm(this); 1396connectConsumerButton.Page = Page; 1417connectProviderButton.Page = Page; 1480label.Page = Page; 1573label.Page = Page; 1696label.Page = Page; 1728label.Page = Page; 1759label.Page = Page; 1909label.Page = Page; 1931label.Page = Page; 1943label.Page = Page; 1953label.Page = Page; 1985label.Page = Page;
UI\WebParts\DeclarativeCatalogPart.cs (1)
143Control userControl = Page.LoadControl(webPartsListUserControlPath);
UI\WebParts\EditorZoneBase.cs (4)
366if (Page != null) { 367Page.VerifyRenderingInServerForm(this); 463label.Page = Page; 481label.Page = Page;
UI\WebParts\ImportCatalogPart.cs (5)
145if (!DesignMode && Page != null) { 146IScriptManager scriptManager = Page.ScriptManager; 375Page.RegisterRequiresControlState(this); 424if (Page != null) { 425Page.VerifyRenderingInServerForm(this);
UI\WebParts\LayoutEditorPart.cs (2)
193if (Page != null) { 194Page.VerifyRenderingInServerForm(this);
UI\WebParts\PersonalizationProvider.cs (3)
62Page page = webPartManager.Page; 130Page page = webPartManager.Page; 187Page page = webPartManager.Page;
UI\WebParts\PropertyGridEditorPart.cs (2)
292if (Page != null) { 293Page.VerifyRenderingInServerForm(this);
UI\WebParts\ProxyWebPartManager.cs (1)
115Page page = Page;
UI\WebParts\ToolZone.cs (2)
341closeButton.Page = Page; 394verbControl.Page = Page;
UI\WebParts\TransformerConfigurationWizardBase.cs (3)
114if (Page != null) { 115Page.RegisterRequiresControlState(this); 116Page.PreRenderComplete += new EventHandler(this.OnPagePreRenderComplete);
UI\WebParts\WebPart.cs (2)
802if (control.Page == null) { 806WebPartManager wpm = WebPartManager.GetCurrentWebPartManager(control.Page);
UI\WebParts\WebPartChrome.cs (1)
47_page = zone.Page;
UI\WebParts\WebPartManager.cs (18)
1152if (EnableClientScript && Page != null) { 1153HttpBrowserCapabilities browserCaps = Page.Request.Browser; 1943if (Page != null && Page.Trace.IsEnabled) { 2418string queryString = Page.Request.QueryStringText; 2420return Page.Request.FilePath + "?" + Page.WebPartExportID + "=true&webPart=" + 2801childControl = Page.LoadControl(userControlTypeName); 3390childControl = Page.LoadControl(path); 3631Page page = Page; 3658Page page = Page; 3721if (Page != null) { 3722Page.ClientScript.RegisterStartupScript( 3729Page.ClientScript.RegisterStartupScript( 3736Page.ClientScript.RegisterStartupScript( 3747Page.RegisterPostBackScript(); 3854Page.ClientScript.RegisterClientScriptResource(this, typeof(WebPartManager), "WebParts.js"); 3898Page.ClientScript.RegisterStartupScript(this, typeof(WebPartManager), String.Empty, startupScript, false); 3900IScriptManager scriptManager = Page.ScriptManager;
UI\WebParts\WebPartPersonalization.cs (4)
109Page page = WebPartManager.Page; 510Page page = WebPartManager.Page; 549Page page = WebPartManager.Page; 612Page page = WebPartManager.Page;
UI\WebParts\WebPartZoneBase.cs (3)
1172if (Page != null) { 1173Page.VerifyRenderingInServerForm(this); 1716return Page;
UI\WebParts\WebZone.cs (4)
534Page page = Page; 570Page != null && 571Page.Request.Browser.Type == "IE5" && 572Page.Request.Browser.Platform == "MacPPC" &&
UI\WebParts\ZoneButton.cs (1)
42if (!String.IsNullOrEmpty(_eventArgument) && _owner.Page != null) {
UI\WebParts\ZoneLinkButton.cs (2)
41if (!String.IsNullOrEmpty(_eventArgument) && _owner.Page != null) { 71image.Page = Page;
System.Web.DataVisualization (22)
Common\General\Chart.cs (2)
3536this.Common.Chart.Page != null) 3541this.Common.Chart.Page.MapPath(url),
Common\General\ImageMap.cs (4)
479else if (!String.IsNullOrEmpty(this.PostBackValue) && chart.Page != null) 483writer.AddAttribute(HtmlTextWriterAttribute.Href, chart.Page.ClientScript.GetPostBackClientHyperlink(chart, this.PostBackValue)); 486if (!postbackRendered && !String.IsNullOrEmpty(this.PostBackValue) && chart.Page != null) 489writer.AddAttribute(HtmlTextWriterAttribute.Onclick, chart.Page.ClientScript.GetPostBackEventReference(chart, this.PostBackValue));
Common\Utilities\ImageLoader.cs (2)
187if (control != null && control.Page != null) 191image = LoadFromFile(control.Page.MapPath(imageURL));
WebForm\ChartWebControl.cs (14)
491if (_currentChartImageLocation.StartsWith("~", StringComparison.Ordinal) && HttpContext.Current != null && this.Page.Request != null) 494_currentChartImageLocation = this.Page.ResolveUrl(_currentChartImageLocation); 680SaveImage(this.Page.MapPath(chartImage)); 711this.Page.Response.ContentType = "image/bmp"; 714this.Page.Response.ContentType = "image/jpeg"; 717this.Page.Response.ContentType = "image/png"; 721this.Page.Response.Charset = ""; 726this.Page.Response.BinaryWrite(stream.GetBuffer()); 838 this.Page.Application.Lock(); 839 if(this.Page.Application[Chart.productID+"_ImageSeqNumber"] != null) 841 imageSeqNumber = (int)this.Page.Application[Chart.productID+"_ImageSeqNumber"] + 1; 848 this.Page.Application[Chart.productID+"_ImageSeqNumber"] = imageSeqNumber; 849 this.Page.Application.UnLock(); 888fileName = this.Page.MapPath(fileName);
System.Web.DynamicData (13)
DynamicData\ControlFilterExpression.cs (3)
48Owner.Page.InitComplete += new EventHandler(Page_InitComplete); 49Owner.Page.LoadComplete += new EventHandler(Page_LoadComplete); 53if (!Owner.Page.IsPostBack) {
DynamicData\DynamicDataManager.cs (2)
114Page.Init += OnPageInit; 187RegisterControlInternal(dataBoundControl, dataSource, table, setSelectionFromUrl, Page.IsPostBack);
DynamicData\DynamicFilter.cs (1)
138Page.InitComplete += new EventHandler(Page_InitComplete);
DynamicData\DynamicHyperLink.cs (1)
99return _dataItem ?? Page.GetDataItem();
DynamicData\DynamicRouteExpression.cs (1)
34owner.Page.InitComplete += new EventHandler(Page_InitComplete);
DynamicData\FieldTemplateUserControl.cs (1)
154return Page.GetDataItem();
DynamicData\FilterRepeater.cs (1)
241Page.InitComplete += new EventHandler(Page_InitComplete);
DynamicData\QueryableFilterRepeater.cs (1)
92Page.InitComplete += new EventHandler(Page_InitComplete);
DynamicData\Util\Misc.cs (2)
285if (control == control.Page) { 292while (foundControl == null && currentContainer != control.Page) {
System.Web.Entity (4)
System\Data\WebControls\EntityDataSource.cs (4)
1102Debug.Assert(Page != null); 1103Page.LoadComplete += new EventHandler(this.OnPageLoadComplete); 1106Page.RegisterRequiresViewStateEncryption(); 1108Page.RegisterRequiresControlState(this);
System.Web.Extensions (72)
UI\AsyncPostBackTrigger.cs (1)
79Page page = Owner.Page;
UI\ExtenderControl.cs (2)
45Page page = Page; 57Page page = Page;
UI\PageRequestManager.cs (2)
514HtmlForm form = _owner.Page.Form; 842writer.Write(GetMasterPageUniqueID(_owner.Page));
UI\PostBackTrigger.cs (1)
45Page page = Owner.Page;
UI\ScriptControl.cs (2)
37Page page = Page; 49Page page = Page;
UI\ScriptControlManager.cs (1)
126if (parent == _scriptManager.Page) {
UI\ScriptManager.cs (8)
612Page page = Page; 1171StatePersister persister = new StatePersister(Page); 1202StatePersister persister = new StatePersister(Page); 1268ScriptManager existingInstance = ScriptManager.GetCurrent(Page); 1495if (control != null && TryRegisterNamedClientScriptResourceUsingScriptReference(control.Page, resourceName)) { 2056if ((Page != null) && (Page.Header != null)) { 2057Page.Title = title;
UI\ScriptManagerProxy.cs (2)
145Page page = Page; 149_scriptManager = UI.ScriptManager.GetCurrent(Page);
UI\ScriptRegistrationManager.cs (29)
144if (childAsPage == _scriptManager.Page) { 174if (control.Page == null) { 178control.Page.ClientScript.RegisterArrayDeclaration(arrayName, arrayValue); 180ScriptManager sm = ScriptManager.GetCurrent(control.Page); 191if (control.Page == null) { 195control.Page.ClientScript.RegisterClientScriptBlock(type, key, script, addScriptTags); 197ScriptManager sm = ScriptManager.GetCurrent(control.Page); 214if (control.Page == null) { 218control.Page.ClientScript.RegisterClientScriptInclude(type, key, url); 220ScriptManager sm = ScriptManager.GetCurrent(control.Page); 235if (control.Page == null) { 239ScriptManager sm = ScriptManager.GetCurrent(control.Page); 249if (control.Page == null) { 259ScriptManager sm = ScriptManager.GetCurrent(control.Page); 261control.Page.ClientScript.RegisterClientScriptResource(type, resourceName); 272control.Page.ClientScript.RegisterClientScriptInclude(type, resourceName, resourceUrl, true); 282if (control.Page == null) { 337if (control.Page == null) { 341control.Page.ClientScript.RegisterExpandoAttribute(controlId, attributeName, attributeValue, encode); 343ScriptManager sm = ScriptManager.GetCurrent(control.Page); 359if (control.Page == null) { 363control.Page.ClientScript.RegisterHiddenField(hiddenFieldName, hiddenFieldInitialValue); 365ScriptManager sm = ScriptManager.GetCurrent(control.Page); 379if (control.Page == null) { 383control.Page.ClientScript.RegisterOnSubmitStatement(type, key, script); 385ScriptManager sm = ScriptManager.GetCurrent(control.Page); 402if (control.Page == null) { 406control.Page.ClientScript.RegisterStartupScript(type, key, script, addScriptTags); 408ScriptManager sm = ScriptManager.GetCurrent(control.Page);
UI\Timer.cs (2)
38Page page = Page; 92Page page = Page;
UI\UpdatePanel.cs (2)
148Page page = Page; 190Page page = Page;
UI\UpdateProgress.cs (2)
126ScriptManager scriptManager = ScriptManager.GetCurrent(Page); 189if (Page != null && ScriptManager.SupportsPartialRendering && Visible) {
UI\WebControls\DataPager.cs (4)
136Page page = Page; 308while (foundContainer == null && currentContainer != this.Page) { 460if (Page != null) { 461Page.RegisterRequiresControlState(this);
UI\WebControls\Expressions\ParameterDataSourceExpression.cs (1)
33owner.Page.LoadComplete += new EventHandler(OnPageLoadComplete);
UI\WebControls\ListView.cs (12)
2391if (causesValidation && Page != null && !Page.IsValid) { 2447if (IsUsingModelBinders && !Page.ModelState.IsValid) { 2517if (causesValidation && Page != null && !Page.IsValid) { 2588if (IsUsingModelBinders && !Page.ModelState.IsValid) { 2817if (Page != null) { 2819Page.RegisterRequiresViewStateEncryption(); 2821Page.RegisterRequiresControlState(this); 3085Page.Validate(_modelValidationGroup); 3086return Page.IsValid; 3192Page.Validate(validationGroup);
UI\WebControls\QueryableDataSource.cs (1)
51Page page = Page;
System.Web.Mobile (23)
UI\MobileControls\BaseValidator.cs (1)
211Page.Validators.Add(this);
UI\MobileControls\Command.cs (2)
76Page.RegisterRequiresRaiseEvent(this); 83Page.RegisterRequiresRaiseEvent(this);
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (1)
116return (control != null && control.Page is MobilePage);
UI\MobileControls\Design\AppliedDeviceFiltersEditor.cs (2)
34if (site == null && ctrl.Page != null) 36site = ctrl.Page.Site;
UI\MobileControls\Design\MobileControlPersister.cs (1)
821IComponent baseComponent = (IComponent)control.Page;
UI\MobileControls\Design\PropertyOverridesDialog.cs (1)
716((Control)clone).Page = ((Control)target).Page;
UI\MobileControls\Design\PropertyOverridesTypeEditor.cs (2)
34if (site == null && ctrl.Page != null) 36site = ctrl.Page.Site;
UI\MobileControls\Design\StyleSheetDesigner.cs (1)
115return ((Control)component).Page as MobilePage;
UI\MobileControls\Form.cs (2)
636MobileCapabilities device = (MobileCapabilities)Page.Request.Browser; 678_controlToPaginate = Page.FindControl((ViewState["ControlToPaginate"]).ToString());
UI\MobileControls\MobileControl.cs (5)
103Page page = Page; 113Page)); 494Object privateViewState = ((MobilePage)Page).GetPrivateViewState(this); 563if (RequiresForm && Page != null) 565Page.VerifyRenderingInServerForm(this);
UI\MobileControls\MobilePage.cs (1)
931if (Page.Request.QueryString[MobileRedirect.QueryStringVariable] == MobileRedirect.QueryStringValue)
UI\MobileControls\PagedControl.cs (1)
266(!Page.IsPostBack ||
UI\MobileControls\SelectionList.cs (2)
325if (Page != null && IsMultiSelect) 328Page.RegisterRequiresPostBack(this);
UI\MobileControls\StyleSheet.cs (1)
234if (Page == null || MobilePage.DesignMode)