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
- SecurityMode.cs
- XsdDuration.cs
- InputLanguageCollection.cs
- XmlDesignerDataSourceView.cs
- CancellationScope.cs
- Point3DAnimationUsingKeyFrames.cs
- GridViewColumnHeader.cs
- FixedTextSelectionProcessor.cs
- PositiveTimeSpanValidatorAttribute.cs
- PathGeometry.cs
- WebPartVerbsEventArgs.cs
- TimersDescriptionAttribute.cs
- HandlerWithFactory.cs
- BookmarkResumptionRecord.cs
- MimePart.cs
- AnnotationService.cs
- WeakEventTable.cs
- ToolStrip.cs
- DataTableExtensions.cs
- OrderToken.cs
- RolePrincipal.cs
- StringUtil.cs
- UnsafePeerToPeerMethods.cs
- SafeNativeMethodsCLR.cs
- ActiveXHost.cs
- StringHandle.cs
- ShaderRenderModeValidation.cs
- SessionIDManager.cs
- XmlEnumAttribute.cs
- XmlComplianceUtil.cs
- ListViewGroupItemCollection.cs
- CodeDelegateInvokeExpression.cs
- WebPartZone.cs
- LineSegment.cs
- PathSegment.cs
- PrintDialogDesigner.cs
- Events.cs
- FlowLayoutPanel.cs
- BindingCollection.cs
- OracleNumber.cs
- TypeDescriptionProviderAttribute.cs
- WaveHeader.cs
- QueryOperator.cs
- EventQueueState.cs
- BlurBitmapEffect.cs
- PathFigureCollection.cs
- DataComponentMethodGenerator.cs
- PagedDataSource.cs
- DataPager.cs
- ValidateNames.cs
- RootBrowserWindowProxy.cs
- ReflectionTypeLoadException.cs
- WebPartHeaderCloseVerb.cs
- LicFileLicenseProvider.cs
- BaseParagraph.cs
- Directory.cs
- GridViewRowCollection.cs
- Parser.cs
- Scheduler.cs
- FileClassifier.cs
- MetadataCacheItem.cs
- XmlSchemaSimpleContentExtension.cs
- Stackframe.cs
- Splitter.cs
- TerminateDesigner.cs
- XmlReflectionImporter.cs
- CmsInterop.cs
- Compiler.cs
- XmlIncludeAttribute.cs
- SignatureResourcePool.cs
- DbConnectionClosed.cs
- ClassData.cs
- CodeArrayCreateExpression.cs
- SafeHandles.cs
- ProfileEventArgs.cs
- AnnotationAdorner.cs
- StackSpiller.Generated.cs
- SqlGenericUtil.cs
- FontDriver.cs
- TraceInternal.cs
- ExchangeUtilities.cs
- PrinterUnitConvert.cs
- BindingGroup.cs
- HelpInfo.cs
- TcpSocketManager.cs
- ItemsControl.cs
- DispatcherOperation.cs
- ApplyTemplatesAction.cs
- SequenceDesignerAccessibleObject.cs
- TextBoxDesigner.cs
- DetailsViewPageEventArgs.cs
- SqlException.cs
- DefaultBindingPropertyAttribute.cs
- BamlRecordWriter.cs
- ExpanderAutomationPeer.cs
- Configuration.cs
- RC2.cs
- safemediahandle.cs
- HttpStreamMessageEncoderFactory.cs
- TextProviderWrapper.cs