Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / Handlers / TraceHandlerErrorFormatter.cs / 1 / TraceHandlerErrorFormatter.cs
// Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Web.Handlers { using System.IO; using System.Web.Util; using System.Web; using System.Collections; using System.Collections.Specialized; internal class TraceHandlerErrorFormatter : ErrorFormatter { bool _isRemote; internal TraceHandlerErrorFormatter(bool isRemote) { _isRemote = isRemote; } protected override string ErrorTitle { get { return SR.GetString(SR.Trace_Error_Title);} } protected override string Description { get { if(_isRemote) return SR.GetString(SR.Trace_Error_LocalOnly_Description); else return HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_Enabled_Description)); } } protected override string MiscSectionTitle { get { return null; } } protected override string MiscSectionContent { get { return null; } } protected override string ColoredSquareTitle { get { string detailsTitle = SR.GetString(SR.Generic_Err_Details_Title); AdaptiveMiscContent.Add(detailsTitle); return detailsTitle; } } protected override string ColoredSquareDescription { get { string description; if(_isRemote) description = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_LocalOnly_Details_Desc)); else description = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_Enabled_Details_Desc)); AdaptiveMiscContent.Add(description); return description; } } protected override string ColoredSquareContent { get { string content; if(_isRemote) content = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_LocalOnly_Details_Sample)); else content = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_Enabled_Details_Sample)); return WrapWithLeftToRightTextFormatIfNeeded(content); } } protected override bool ShowSourceFileInfo { get { return false;} } internal override bool CanBeShownToAllUsers { get { return true;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Web.Handlers { using System.IO; using System.Web.Util; using System.Web; using System.Collections; using System.Collections.Specialized; internal class TraceHandlerErrorFormatter : ErrorFormatter { bool _isRemote; internal TraceHandlerErrorFormatter(bool isRemote) { _isRemote = isRemote; } protected override string ErrorTitle { get { return SR.GetString(SR.Trace_Error_Title);} } protected override string Description { get { if(_isRemote) return SR.GetString(SR.Trace_Error_LocalOnly_Description); else return HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_Enabled_Description)); } } protected override string MiscSectionTitle { get { return null; } } protected override string MiscSectionContent { get { return null; } } protected override string ColoredSquareTitle { get { string detailsTitle = SR.GetString(SR.Generic_Err_Details_Title); AdaptiveMiscContent.Add(detailsTitle); return detailsTitle; } } protected override string ColoredSquareDescription { get { string description; if(_isRemote) description = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_LocalOnly_Details_Desc)); else description = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_Enabled_Details_Desc)); AdaptiveMiscContent.Add(description); return description; } } protected override string ColoredSquareContent { get { string content; if(_isRemote) content = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_LocalOnly_Details_Sample)); else content = HttpUtility.HtmlEncode(SR.GetString(SR.Trace_Error_Enabled_Details_Sample)); return WrapWithLeftToRightTextFormatIfNeeded(content); } } protected override bool ShowSourceFileInfo { get { return false;} } internal override bool CanBeShownToAllUsers { get { return true;} } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ComponentEditorPage.cs
- DataGridViewLayoutData.cs
- TraceSection.cs
- SecurityDocument.cs
- ListViewHitTestInfo.cs
- SqlNotificationEventArgs.cs
- CompoundFileStreamReference.cs
- DecoratedNameAttribute.cs
- ModelEditingScope.cs
- ButtonStandardAdapter.cs
- ToolboxDataAttribute.cs
- IgnoreDeviceFilterElementCollection.cs
- SoapAttributes.cs
- OperationDescriptionCollection.cs
- DbSourceParameterCollection.cs
- UpDownBaseDesigner.cs
- TcpStreams.cs
- ResourceExpressionBuilder.cs
- MsmqBindingMonitor.cs
- D3DImage.cs
- Roles.cs
- FocusTracker.cs
- QueryStringHandler.cs
- SchemaElementLookUpTableEnumerator.cs
- TextTreeTextElementNode.cs
- DetailsViewDeletedEventArgs.cs
- SoapAttributeOverrides.cs
- DNS.cs
- SetIndexBinder.cs
- PersianCalendar.cs
- DispatcherEventArgs.cs
- TraceSection.cs
- Signature.cs
- SafeHandle.cs
- ClientTarget.cs
- GeometryDrawing.cs
- ChildTable.cs
- WithParamAction.cs
- SymDocumentType.cs
- XmlCountingReader.cs
- RayMeshGeometry3DHitTestResult.cs
- EntityCommandExecutionException.cs
- XmlException.cs
- StreamUpdate.cs
- ScrollItemPatternIdentifiers.cs
- PtsContext.cs
- TextSerializer.cs
- _SslSessionsCache.cs
- RequestNavigateEventArgs.cs
- SqlBuilder.cs
- PrintDialog.cs
- Pair.cs
- OleCmdHelper.cs
- StylusSystemGestureEventArgs.cs
- Bold.cs
- CardSpaceShim.cs
- WebPartTransformer.cs
- unsafenativemethodsother.cs
- CompressedStack.cs
- EntityDesignerDataSourceView.cs
- ControlUtil.cs
- SpeechUI.cs
- Authorization.cs
- ToolTipService.cs
- DataGrid.cs
- TraceListeners.cs
- EventKeyword.cs
- commandenforcer.cs
- Publisher.cs
- FileNotFoundException.cs
- FixedTextContainer.cs
- AesManaged.cs
- CultureTable.cs
- RoleGroup.cs
- Propagator.ExtentPlaceholderCreator.cs
- TextFormatterContext.cs
- CategoryAttribute.cs
- ElementHostAutomationPeer.cs
- MailWriter.cs
- TypefaceMetricsCache.cs
- BasicBrowserDialog.designer.cs
- ClientRoleProvider.cs
- ViewManagerAttribute.cs
- NodeLabelEditEvent.cs
- SizeConverter.cs
- CodeDirectiveCollection.cs
- UInt16Converter.cs
- ScrollProviderWrapper.cs
- EventProviderWriter.cs
- SqlBooleanizer.cs
- DocumentPaginator.cs
- CustomPopupPlacement.cs
- DesignerObject.cs
- EntityDataSourceContextDisposingEventArgs.cs
- DefaultDiscoveryServiceExtension.cs
- MeshGeometry3D.cs
- TypographyProperties.cs
- EnumUnknown.cs
- ToolStripGrip.cs
- HandleCollector.cs