Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- FieldAccessException.cs
- RepeaterItemEventArgs.cs
- XmlCollation.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- odbcmetadatacolumnnames.cs
- EntityParameter.cs
- ConfigViewGenerator.cs
- SqlCacheDependencySection.cs
- ExtendLockCommand.cs
- WindowsAuthenticationEventArgs.cs
- Size3D.cs
- TransformerInfo.cs
- iisPickupDirectory.cs
- AppDomainProtocolHandler.cs
- XPathSingletonIterator.cs
- RuntimeResourceSet.cs
- ButtonChrome.cs
- Rectangle.cs
- TabItem.cs
- ListViewItemSelectionChangedEvent.cs
- ChangeBlockUndoRecord.cs
- ConstructorArgumentAttribute.cs
- CopyOfAction.cs
- IIS7WorkerRequest.cs
- listitem.cs
- Int64Converter.cs
- KeyPressEvent.cs
- DesignOnlyAttribute.cs
- CompletedAsyncResult.cs
- ProfileBuildProvider.cs
- CodeBinaryOperatorExpression.cs
- DbConnectionPool.cs
- SqlDataSourceStatusEventArgs.cs
- ExceptionHandlersDesigner.cs
- WindowsAuthenticationModule.cs
- PropertyEmitterBase.cs
- KerberosRequestorSecurityToken.cs
- DecimalSumAggregationOperator.cs
- DataGridViewRowEventArgs.cs
- RepeaterItem.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- BuildProviderCollection.cs
- BinaryMessageEncoder.cs
- OrElse.cs
- XmlElementAttributes.cs
- DeclarativeCatalogPart.cs
- ErrorTableItemStyle.cs
- MarkerProperties.cs
- TranslateTransform.cs
- SignedInfo.cs
- DocumentViewer.cs
- XmlSchemaInclude.cs
- RequestUriProcessor.cs
- _ScatterGatherBuffers.cs
- CompatibleIComparer.cs
- DataBindingCollection.cs
- OperationAbortedException.cs
- FragmentQueryProcessor.cs
- SelectionPattern.cs
- CurrencyWrapper.cs
- IgnoreSectionHandler.cs
- SqlResolver.cs
- ObjectListItemCollection.cs
- ManipulationStartingEventArgs.cs
- ProcessHostMapPath.cs
- Size.cs
- CultureSpecificCharacterBufferRange.cs
- RootBrowserWindowProxy.cs
- ItemContainerPattern.cs
- RelationshipFixer.cs
- RawStylusInputCustomData.cs
- ValueTable.cs
- DbMetaDataCollectionNames.cs
- Walker.cs
- WindowsFormsSectionHandler.cs
- HashCryptoHandle.cs
- EntityStoreSchemaGenerator.cs
- KeyEventArgs.cs
- MetadataUtil.cs
- CodeNamespace.cs
- DataBindingCollection.cs
- SoapCodeExporter.cs
- DuplicateDetector.cs
- WebBrowserPermission.cs
- DescendentsWalker.cs
- IDispatchConstantAttribute.cs
- Preprocessor.cs
- WebPartMenuStyle.cs
- AsymmetricKeyExchangeFormatter.cs
- DataTableClearEvent.cs
- TextEditorTyping.cs
- _LocalDataStoreMgr.cs
- WindowsAuthenticationEventArgs.cs
- BamlBinaryWriter.cs
- ClientOptions.cs
- DataMemberFieldEditor.cs
- PropertyChange.cs
- GradientBrush.cs
- SemaphoreSecurity.cs
- WebPartZone.cs