Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;} } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DefaultTextStore.cs
- VScrollBar.cs
- CompilationUnit.cs
- FileEnumerator.cs
- CodeIterationStatement.cs
- MachineKey.cs
- OptimalTextSource.cs
- UnsafeNativeMethods.cs
- Grid.cs
- PointLight.cs
- FormsAuthentication.cs
- GlyphManager.cs
- StickyNoteContentControl.cs
- odbcmetadatacolumnnames.cs
- StagingAreaInputItem.cs
- TemplateContainer.cs
- AppModelKnownContentFactory.cs
- HostElement.cs
- XmlWrappingReader.cs
- OleDbConnectionFactory.cs
- WhitespaceRuleLookup.cs
- BitmapCodecInfo.cs
- ElementNotEnabledException.cs
- RoleGroup.cs
- ApplicationSettingsBase.cs
- ExpressionVisitor.cs
- ConstNode.cs
- PrefixHandle.cs
- EncodingDataItem.cs
- RandomNumberGenerator.cs
- InstanceDescriptor.cs
- ImageBrush.cs
- VisualBasicExpressionConverter.cs
- RegexWorker.cs
- LogReservationCollection.cs
- MembershipValidatePasswordEventArgs.cs
- ReadContentAsBinaryHelper.cs
- FixedBufferAttribute.cs
- Style.cs
- DataGridTextBox.cs
- BooleanAnimationBase.cs
- XMLSchema.cs
- ServicePoint.cs
- ApplicationContext.cs
- SequenceDesigner.cs
- ProxyWebPartConnectionCollection.cs
- DashStyle.cs
- WriteableBitmap.cs
- PeerNearMe.cs
- IpcPort.cs
- QuaternionValueSerializer.cs
- SoapAttributeOverrides.cs
- Msmq3PoisonHandler.cs
- DbExpressionRules.cs
- CustomErrorsSectionWrapper.cs
- EdmFunction.cs
- InkCanvasAutomationPeer.cs
- XmlWrappingReader.cs
- GotoExpression.cs
- PEFileEvidenceFactory.cs
- TextTreeRootTextBlock.cs
- VoiceObjectToken.cs
- TransactionManagerProxy.cs
- LinqDataView.cs
- DataTablePropertyDescriptor.cs
- StorageScalarPropertyMapping.cs
- File.cs
- DLinqColumnProvider.cs
- QilDataSource.cs
- IconHelper.cs
- XmlTextEncoder.cs
- CreateParams.cs
- InternalBase.cs
- FileLogRecordStream.cs
- SmtpNtlmAuthenticationModule.cs
- XmlAnyElementAttributes.cs
- HatchBrush.cs
- CacheChildrenQuery.cs
- LicFileLicenseProvider.cs
- WebPartConnectionCollection.cs
- MergeFailedEvent.cs
- ScrollItemPattern.cs
- TextEditorCopyPaste.cs
- ClientProxyGenerator.cs
- FrameworkContentElementAutomationPeer.cs
- WebSysDescriptionAttribute.cs
- PriorityItem.cs
- UmAlQuraCalendar.cs
- PropVariant.cs
- PropertyInfoSet.cs
- ImageFormat.cs
- httpserverutility.cs
- SizeLimitedCache.cs
- CookieProtection.cs
- TextDecorationLocationValidation.cs
- WaitHandleCannotBeOpenedException.cs
- XamlPointCollectionSerializer.cs
- FileVersion.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- XmlDesigner.cs