Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Handlers / TraceHandlerErrorFormatter.cs / 1305376 / 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
- ToolBarOverflowPanel.cs
- SmiRecordBuffer.cs
- AuthenticationConfig.cs
- FormViewRow.cs
- SHA1Managed.cs
- EncryptedXml.cs
- LambdaCompiler.Generated.cs
- HitTestDrawingContextWalker.cs
- DynamicDocumentPaginator.cs
- OdbcConnectionFactory.cs
- SoapObjectInfo.cs
- KeyNotFoundException.cs
- GlyphRunDrawing.cs
- printdlgexmarshaler.cs
- Formatter.cs
- ExpressionDumper.cs
- MetadataItem.cs
- BitmapFrameEncode.cs
- GridItem.cs
- VectorKeyFrameCollection.cs
- TabPanel.cs
- DataKey.cs
- InputBindingCollection.cs
- DrawingGroup.cs
- PrimaryKeyTypeConverter.cs
- CodeIndexerExpression.cs
- ControlIdConverter.cs
- AlignmentXValidation.cs
- WebPartConnectionCollection.cs
- TriState.cs
- ConfigurationPropertyAttribute.cs
- ReadWriteObjectLock.cs
- AtomServiceDocumentSerializer.cs
- _NestedMultipleAsyncResult.cs
- ConfigurationCollectionAttribute.cs
- AdornerDecorator.cs
- SqlConnectionPoolProviderInfo.cs
- InputLangChangeRequestEvent.cs
- MetadataSerializer.cs
- SrgsToken.cs
- Point4DConverter.cs
- PackWebResponse.cs
- TreeViewAutomationPeer.cs
- MarkupExtensionReturnTypeAttribute.cs
- TextTreeRootNode.cs
- RenderData.cs
- ApplicationTrust.cs
- SoapHelper.cs
- InvokerUtil.cs
- SystemInfo.cs
- UIElementAutomationPeer.cs
- WebPartTransformer.cs
- PaginationProgressEventArgs.cs
- Error.cs
- EncodingFallbackAwareXmlTextWriter.cs
- RbTree.cs
- BindingCollection.cs
- SessionParameter.cs
- ImageSource.cs
- FileDialog.cs
- PropertyMapper.cs
- ConfigurationPropertyCollection.cs
- BordersPage.cs
- DrawingAttributes.cs
- InternalUserCancelledException.cs
- XmlHierarchicalEnumerable.cs
- Events.cs
- EdmScalarPropertyAttribute.cs
- ListDataHelper.cs
- Subset.cs
- StopStoryboard.cs
- VisemeEventArgs.cs
- TypeTypeConverter.cs
- EdmRelationshipRoleAttribute.cs
- MasterPageBuildProvider.cs
- X509ServiceCertificateAuthenticationElement.cs
- MapPathBasedVirtualPathProvider.cs
- CodeDefaultValueExpression.cs
- BridgeDataRecord.cs
- AxisAngleRotation3D.cs
- UpdateException.cs
- Command.cs
- TimeEnumHelper.cs
- PathStreamGeometryContext.cs
- MatrixAnimationUsingKeyFrames.cs
- ADMembershipUser.cs
- MatchingStyle.cs
- WebPartConnectionsCancelEventArgs.cs
- InvalidPrinterException.cs
- Control.cs
- EnumMemberAttribute.cs
- Executor.cs
- _NetRes.cs
- EdmSchemaAttribute.cs
- PrimitiveCodeDomSerializer.cs
- SourceExpressionException.cs
- TablePattern.cs
- WaitForChangedResult.cs
- ScriptDescriptor.cs
- DataGridRowsPresenter.cs