Base:
property
Context
System.Web.UI.Control.Context
77 references to Context
System.Web (66)
UI\Control.cs (5)
400
return page.
Context
;
1795
using (page.
Context
.SyncContext.AllowVoidAsyncOperationsBlock()) {
2283
using (page.
Context
.SyncContext.AllowVoidAsyncOperationsBlock()) {
2365
using (page.
Context
.SyncContext.AllowVoidAsyncOperationsBlock()) {
2374
using (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);
1112
return
Context
.Trace;
1163
if (
Context
!= null &&
Context
.Request != null) {
1165
return
Context
.Request.RequestContext.RouteData;
1179
get { return
Context
.Server;}
1215
_session =
Context
.Session;
1412
get { return
Context
.User;}
1453
if (
Context
!= null &&
Context
.Request != null &&
Context
.Request.Browser != null) {
1454
return
Context
.Request.Browser.CreateHtmlTextWriter(tw);
1559
Context
.TempError = e;
1563
if (
Context
.TempError == null)
1566
Context
.TempError = null;
1572
if (
Context
.IsCustomErrorEnabled) {
1573
_response.RedirectToErrorPage(_errorPage, CustomErrorsSection.GetSettings(
Context
).RedirectMode);
1582
if (
Context
.TraceIsEnabled) {
1678
if (
Context
.ServerExecuteDepth > 0 &&
1679
(
Context
.Handler == null || GetType() !=
Context
.Handler.GetType())) {
1938
if (
Context
.Request == null)
1942
if (
Context
.PreventPostback)
2103
if (
Context
!= null &&
Context
.TraceIsEnabled) {
2637
Context
, styleSheetName);
2655
Context
, themeName);
3149
using (
Context
.SyncContext.AllowVoidAsyncOperationsBlock()) {
3199
using (
Context
.SyncContext.AllowVoidAsyncOperationsBlock()) {
3243
using (
Context
.SyncContext.AllowVoidAsyncOperationsBlock()) {
3307
using (
Context
.SyncContext.AllowVoidAsyncOperationsBlock()) {
3436
if (!Util.IsUserAllowedToPath(
Context
, _previousPagePath)) {
3441
(ITypedWebObjectFactory)BuildManager.GetVPathBuildResult(
Context
, _previousPagePath);
3703
cache.SetExpires(
Context
.Timestamp.AddSeconds(duration));
3706
cache.SetLastModified(
Context
.Timestamp);
3969
if (
Context
!= null) {
3970
PagesSection pagesSection = RuntimeConfig.GetConfig(
Context
).Pages;
4253
using (
Context
.SyncContext.AllowVoidAsyncOperationsBlock()) {
4434
bool needToCallEndTrace =
Context
.WorkerRequest is IIS7WorkerRequest;
4478
bool needToCallEndTrace =
Context
.WorkerRequest is IIS7WorkerRequest;
4486
await ProcessRequestMainAsync(includeStagesBeforeAsyncPoint, includeStagesAfterAsyncPoint).WithinCancellableCallback(
Context
);
4579
if (
Context
.TraceIsEnabled) {
4586
if (
Context
.TraceIsEnabled) {
4625
HttpContext con =
Context
;
4921
HttpContext con =
Context
;
5240
return syncContext.WaitForPendingOperationsAsync().WithinCancellableCallback(
Context
);
5327
if (
Context
.IsCustomErrorEnabled) {
5351
using (
Context
.SyncContext.AllowVoidAsyncOperationsBlock()) {
5363
if (
Context
.IsCustomErrorEnabled) {
5424
if (
Context
.IsCustomErrorEnabled) {
5515
if (
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);
6245
if (
Context
== null || DesignMode) {
6274
String s =
Context
.Request.CurrentExecutionFilePath;
6275
String filePath =
Context
.Request.FilePath;
UI\WebControls\ModelDataSourceView.cs (2)
722
var syncContext = _owner.DataControl.Page.
Context
.SyncContext as AspNetSynchronizationContext;
874
var 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)
382
ControlsConfig.GetFromContext(
Context
).AllowCustomAttributes ?
431
ControlsConfig.GetFromContext(
Context
).GetDeviceConfig(
Context
);
497
String s =
Context
.Request.CurrentExecutionFilePath;
498
String filePath =
Context
.Request.FilePath;
530
if (_absoluteFilePath == null &&
Context
!= null)
532
_absoluteFilePath = Response.ApplyAppPathModifier(
Context
.Request.CurrentExecutionFilePath);
911
if (
Context
.Handler != this)
919
Adapter.DeterminePostBackMode(
Context
.Request,
1137
if (
Context
!= null && TraceEnabled) {