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
- ServiceOperation.cs
- CookieParameter.cs
- ApplicationSecurityManager.cs
- TextSpanModifier.cs
- ParameterModifier.cs
- CustomExpressionEventArgs.cs
- Menu.cs
- CqlIdentifiers.cs
- StateDesigner.Helpers.cs
- WindowsScroll.cs
- TraceContextEventArgs.cs
- CriticalHandle.cs
- Classification.cs
- StateWorkerRequest.cs
- SpecularMaterial.cs
- SettingsSection.cs
- ScrollEventArgs.cs
- RelOps.cs
- TypeLoadException.cs
- AppDomainManager.cs
- TextBoxLine.cs
- PropertyEntry.cs
- Itemizer.cs
- Translator.cs
- SelectionProviderWrapper.cs
- DataControlButton.cs
- Memoizer.cs
- GraphicsContainer.cs
- codemethodreferenceexpression.cs
- WebBrowserDesigner.cs
- NavigationCommands.cs
- XmlObjectSerializerReadContextComplexJson.cs
- QueryOpcode.cs
- SqlDataSourceSummaryPanel.cs
- CompilerGlobalScopeAttribute.cs
- Transform.cs
- ErrorProvider.cs
- MaterialGroup.cs
- MulticastOption.cs
- EmptyControlCollection.cs
- _CookieModule.cs
- SecureConversationVersion.cs
- ClientTarget.cs
- documentsequencetextview.cs
- RtfControlWordInfo.cs
- MemberRelationshipService.cs
- MasterPageBuildProvider.cs
- AmbiguousMatchException.cs
- RSAOAEPKeyExchangeFormatter.cs
- BindStream.cs
- ActivityXRefConverter.cs
- PrimitiveDataContract.cs
- EntityClientCacheEntry.cs
- SimpleMailWebEventProvider.cs
- mediaclock.cs
- CharEntityEncoderFallback.cs
- BrowserCapabilitiesCompiler.cs
- MobilePage.cs
- PenContexts.cs
- SynchronizationContext.cs
- CreationContext.cs
- AnnotationAdorner.cs
- ReliabilityContractAttribute.cs
- AspCompat.cs
- RadioButton.cs
- RefreshPropertiesAttribute.cs
- AttachedPropertyDescriptor.cs
- While.cs
- RNGCryptoServiceProvider.cs
- RecognitionEventArgs.cs
- BadImageFormatException.cs
- DesignerTransactionCloseEvent.cs
- AlgoModule.cs
- BrowserCapabilitiesFactory35.cs
- COM2TypeInfoProcessor.cs
- MonthChangedEventArgs.cs
- __TransparentProxy.cs
- GridViewItemAutomationPeer.cs
- returneventsaver.cs
- SqlComparer.cs
- ConfigurationStrings.cs
- DetailsViewPageEventArgs.cs
- AttributeProviderAttribute.cs
- LoginDesignerUtil.cs
- Argument.cs
- DynamicQueryableWrapper.cs
- ProjectionCamera.cs
- SingleObjectCollection.cs
- NeutralResourcesLanguageAttribute.cs
- SchemaAttDef.cs
- ReaderContextStackData.cs
- ListBindingHelper.cs
- StructuredTypeEmitter.cs
- WSHttpSecurityElement.cs
- PrePrepareMethodAttribute.cs
- ResourceExpressionEditor.cs
- BindingContext.cs
- MatrixCamera.cs
- WaitHandle.cs
- RetrieveVirtualItemEventArgs.cs