Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / Handlers / TraceHandlerErrorFormatter.cs / 1 / TraceHandlerErrorFormatter.cs
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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridTablesFactory.cs
- ThreadPool.cs
- StoreContentChangedEventArgs.cs
- MediaSystem.cs
- SymbolEqualComparer.cs
- keycontainerpermission.cs
- ListDictionary.cs
- WeakEventTable.cs
- DesignerTextViewAdapter.cs
- XsltFunctions.cs
- SerializationAttributes.cs
- SessionConnectionReader.cs
- RelatedPropertyManager.cs
- SingleAnimationUsingKeyFrames.cs
- RectangleF.cs
- StyleHelper.cs
- ProfileBuildProvider.cs
- SymbolPair.cs
- ProvideValueServiceProvider.cs
- TextRangeEditLists.cs
- SafeEventLogWriteHandle.cs
- MSAANativeProvider.cs
- BoundPropertyEntry.cs
- Visual3D.cs
- Win32Native.cs
- FlowNode.cs
- DateRangeEvent.cs
- _ListenerRequestStream.cs
- ParameterCollection.cs
- DataGridViewIntLinkedList.cs
- Random.cs
- OneOfScalarConst.cs
- BrowserCapabilitiesFactory.cs
- DataStreams.cs
- SchemeSettingElementCollection.cs
- ConfigurationStrings.cs
- LinqDataSourceInsertEventArgs.cs
- NavigatingCancelEventArgs.cs
- StatusBarAutomationPeer.cs
- AsymmetricSignatureDeformatter.cs
- XmlNodeList.cs
- DATA_BLOB.cs
- CommentGlyph.cs
- XmlSchemaException.cs
- Thread.cs
- Parser.cs
- XmlAttributeOverrides.cs
- GuidConverter.cs
- HtmlInputPassword.cs
- SafeTokenHandle.cs
- QuerySettings.cs
- SmiMetaData.cs
- AutomationPattern.cs
- Imaging.cs
- HttpPostedFile.cs
- URI.cs
- MulticastDelegate.cs
- TableTextElementCollectionInternal.cs
- DataGridViewSelectedColumnCollection.cs
- GlobalItem.cs
- TakeOrSkipQueryOperator.cs
- ObjectQuery_EntitySqlExtensions.cs
- CultureMapper.cs
- WebServiceTypeData.cs
- XpsFont.cs
- TreeViewEvent.cs
- mda.cs
- MimeFormImporter.cs
- Viewport3DVisual.cs
- MemberAccessException.cs
- TextLine.cs
- InstanceData.cs
- AnnotationElement.cs
- PreviewKeyDownEventArgs.cs
- CodeCommentStatementCollection.cs
- DataListCommandEventArgs.cs
- MetadataArtifactLoaderCompositeFile.cs
- TrustManager.cs
- KnownBoxes.cs
- SchemaComplexType.cs
- SoapObjectReader.cs
- ScrollProperties.cs
- mil_sdk_version.cs
- SmiTypedGetterSetter.cs
- SqlExpander.cs
- VectorAnimationUsingKeyFrames.cs
- ChannelManager.cs
- Literal.cs
- WeakKeyDictionary.cs
- MediaPlayerState.cs
- DataObjectAttribute.cs
- ThousandthOfEmRealPoints.cs
- PasswordBox.cs
- StrongNamePublicKeyBlob.cs
- SafeSystemMetrics.cs
- PrinterSettings.cs
- ArrayTypeMismatchException.cs
- ProjectionCamera.cs
- WorkflowInstance.cs
- cryptoapiTransform.cs