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
- InvokePatternIdentifiers.cs
- MouseActionValueSerializer.cs
- TableAutomationPeer.cs
- MergeLocalizationDirectives.cs
- KeyFrames.cs
- UrlMapping.cs
- EntityObject.cs
- Internal.cs
- ResolveNameEventArgs.cs
- GridPatternIdentifiers.cs
- HttpModuleCollection.cs
- TextBoxDesigner.cs
- ProgramPublisher.cs
- LoadItemsEventArgs.cs
- CuspData.cs
- ObjectDataSourceSelectingEventArgs.cs
- ResXResourceReader.cs
- BindingCollection.cs
- EmbeddedMailObject.cs
- HttpValueCollection.cs
- WebException.cs
- WsdlParser.cs
- PropertyTabChangedEvent.cs
- ToolStripSettings.cs
- StoreContentChangedEventArgs.cs
- DeviceContext.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- coordinatorfactory.cs
- DocComment.cs
- Effect.cs
- RadioButtonFlatAdapter.cs
- ConfigXmlCDataSection.cs
- SqlCharStream.cs
- AuthenticationService.cs
- RoleGroupCollection.cs
- TreeViewBindingsEditorForm.cs
- ConnectionPoint.cs
- DefaultValueTypeConverter.cs
- PointLightBase.cs
- XsltQilFactory.cs
- AutoResetEvent.cs
- ResourceDefaultValueAttribute.cs
- EmptyEnumerable.cs
- FileSystemInfo.cs
- ColumnTypeConverter.cs
- WebEventCodes.cs
- MsmqHostedTransportManager.cs
- InvariantComparer.cs
- DiagnosticsElement.cs
- ResXResourceWriter.cs
- VerticalAlignConverter.cs
- ExpandableObjectConverter.cs
- ChildChangedEventArgs.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- EventWaitHandle.cs
- SerializerProvider.cs
- SerialStream.cs
- IntSecurity.cs
- EntityTypeEmitter.cs
- BamlResourceSerializer.cs
- CodeDomLoader.cs
- DataGridViewColumnDesigner.cs
- GridViewPageEventArgs.cs
- FrameAutomationPeer.cs
- ToolStripProgressBar.cs
- ImageDrawing.cs
- TypeConverter.cs
- mediapermission.cs
- DefinitionUpdate.cs
- Compensation.cs
- CodeDomConfigurationHandler.cs
- UnmanagedMemoryStreamWrapper.cs
- DataProtection.cs
- XsltLoader.cs
- ItemType.cs
- NetStream.cs
- LookupBindingPropertiesAttribute.cs
- OAVariantLib.cs
- CapabilitiesPattern.cs
- WmpBitmapDecoder.cs
- InkCollectionBehavior.cs
- ProcessHostFactoryHelper.cs
- QueryContinueDragEvent.cs
- Util.cs
- ServiceOperationInvoker.cs
- BitmapEffectCollection.cs
- ChineseLunisolarCalendar.cs
- WebRequestModuleElement.cs
- PaperSource.cs
- Transform3DGroup.cs
- EventLog.cs
- InvalidOperationException.cs
- DropTarget.cs
- DecodeHelper.cs
- StyleHelper.cs
- CollectionBuilder.cs
- ZipIOModeEnforcingStream.cs
- WebConfigurationHostFileChange.cs
- DbProviderManifest.cs
- MdImport.cs