Base:
property
Context
System.Web.UI.Control.Context
77 references to Context
System.Web (66)
UI\Control.cs (5)
400return page.Context; 1795using (page.Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 2283using (page.Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 2365using (page.Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 2374using (page.Context.SyncContext.AllowVoidAsyncOperationsBlock()) {
UI\LegacyPageAsyncTaskManager.cs (1)
34_app = page.Context.ApplicationInstance;
UI\Page.cs (58)
494_modelBindingExecutionContext = new ModelBindingExecutionContext(new HttpContextWrapper(Context), this.ModelState); 941_master = MasterPage.CreateMaster(this, Context, _masterPageFile, _contentTemplateCollection); 1112return Context.Trace; 1163if (Context != null && Context.Request != null) { 1165return Context.Request.RequestContext.RouteData; 1179get { return Context.Server;} 1215_session = Context.Session; 1412get { return Context.User;} 1453if (Context != null && Context.Request != null && Context.Request.Browser != null) { 1454return Context.Request.Browser.CreateHtmlTextWriter(tw); 1559Context.TempError = e; 1563if (Context.TempError == null) 1566Context.TempError = null; 1572if (Context.IsCustomErrorEnabled) { 1573_response.RedirectToErrorPage(_errorPage, CustomErrorsSection.GetSettings(Context).RedirectMode); 1582if (Context.TraceIsEnabled) { 1678if (Context.ServerExecuteDepth > 0 && 1679(Context.Handler == null || GetType() != Context.Handler.GetType())) { 1938if (Context.Request == null) 1942if (Context.PreventPostback) 2103if (Context != null && Context.TraceIsEnabled) { 2637Context, styleSheetName); 2655Context, themeName); 3149using (Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 3199using (Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 3243using (Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 3307using (Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 3436if (!Util.IsUserAllowedToPath(Context, _previousPagePath)) { 3441(ITypedWebObjectFactory)BuildManager.GetVPathBuildResult(Context, _previousPagePath); 3703cache.SetExpires(Context.Timestamp.AddSeconds(duration)); 3706cache.SetLastModified(Context.Timestamp); 3969if (Context != null) { 3970PagesSection pagesSection = RuntimeConfig.GetConfig(Context).Pages; 4253using (Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 4434bool needToCallEndTrace = Context.WorkerRequest is IIS7WorkerRequest; 4478bool needToCallEndTrace = Context.WorkerRequest is IIS7WorkerRequest; 4486await ProcessRequestMainAsync(includeStagesBeforeAsyncPoint, includeStagesAfterAsyncPoint).WithinCancellableCallback(Context); 4579if (Context.TraceIsEnabled) { 4586if (Context.TraceIsEnabled) { 4625HttpContext con = Context; 4921HttpContext con = Context; 5240return syncContext.WaitForPendingOperationsAsync().WithinCancellableCallback(Context); 5327if (Context.IsCustomErrorEnabled) { 5351using (Context.SyncContext.AllowVoidAsyncOperationsBlock()) { 5363if (Context.IsCustomErrorEnabled) { 5424if (Context.IsCustomErrorEnabled) { 5515if (Context.TraceIsEnabled) { 5772_app = page.Context.ApplicationInstance; 5773_syncContext = page.Context.SyncContext; 5914_page.Context.InvokeCancellableCallback(new WaitCallback(o => { _page.ProcessRequest(false /*includeStagesBeforeAsyncPoint*/, true /*includeStagesAfterAsyncPoint*/); }), null); 6245if (Context == null || DesignMode) { 6274String s = Context.Request.CurrentExecutionFilePath; 6275String filePath = Context.Request.FilePath;
UI\WebControls\ModelDataSourceView.cs (2)
722var syncContext = _owner.DataControl.Page.Context.SyncContext as AspNetSynchronizationContext; 874var syncContext = _owner.DataControl.Page.Context.SyncContext as AspNetSynchronizationContext;
System.Web.Mobile (11)
UI\MobileControls\ErrorFormatterPage.cs (1)
52_errorInfo = Context.Items[MobileErrorInfo.ContextKey] as MobileErrorInfo;
UI\MobileControls\MobilePage.cs (10)
382ControlsConfig.GetFromContext(Context).AllowCustomAttributes ? 431ControlsConfig.GetFromContext(Context).GetDeviceConfig(Context); 497String s = Context.Request.CurrentExecutionFilePath; 498String filePath = Context.Request.FilePath; 530if (_absoluteFilePath == null && Context != null) 532_absoluteFilePath = Response.ApplyAppPathModifier(Context.Request.CurrentExecutionFilePath); 911if (Context.Handler != this) 919Adapter.DeterminePostBackMode(Context.Request, 1137if (Context != null && TraceEnabled) {