Code:
/ DotNET / DotNET / 8.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
- QilVisitor.cs
- IImplicitResourceProvider.cs
- FileDetails.cs
- TextBox.cs
- Int16AnimationUsingKeyFrames.cs
- Drawing.cs
- EncodingDataItem.cs
- CodeIdentifier.cs
- IntSecurity.cs
- PriorityChain.cs
- DecimalKeyFrameCollection.cs
- PointCollection.cs
- DbConnectionStringCommon.cs
- EditorZone.cs
- SourceInterpreter.cs
- returneventsaver.cs
- ThousandthOfEmRealPoints.cs
- RadioButtonFlatAdapter.cs
- NonVisualControlAttribute.cs
- columnmapkeybuilder.cs
- SchemaImporter.cs
- FlowDecisionLabelFeature.cs
- OracleDateTime.cs
- ResourceSet.cs
- LineServices.cs
- PriorityBindingExpression.cs
- EntitySqlException.cs
- WorkflowInstanceSuspendedRecord.cs
- Form.cs
- MiniParameterInfo.cs
- GetWinFXPath.cs
- Gdiplus.cs
- NamespaceCollection.cs
- IDQuery.cs
- HtmlInputControl.cs
- BuildProvider.cs
- DocumentReferenceCollection.cs
- TableLayoutSettings.cs
- MetabaseSettingsIis7.cs
- Crypto.cs
- ScriptingRoleServiceSection.cs
- WebDescriptionAttribute.cs
- PagePropertiesChangingEventArgs.cs
- UrlPath.cs
- PageContent.cs
- PrePrepareMethodAttribute.cs
- IssuedTokenServiceElement.cs
- IsolatedStorageFileStream.cs
- DataGridViewAutoSizeModeEventArgs.cs
- Int16AnimationUsingKeyFrames.cs
- ColorKeyFrameCollection.cs
- DelayedRegex.cs
- InternalPolicyElement.cs
- ListBoxItem.cs
- StatusBarPanel.cs
- ListCollectionView.cs
- _PooledStream.cs
- SqlConnectionPoolGroupProviderInfo.cs
- FontUnit.cs
- RenameRuleObjectDialog.cs
- TemplateBuilder.cs
- MetadataCache.cs
- CacheOutputQuery.cs
- TagPrefixInfo.cs
- OutputBuffer.cs
- TakeQueryOptionExpression.cs
- RichTextBox.cs
- DataTableNewRowEvent.cs
- sqlmetadatafactory.cs
- RootNamespaceAttribute.cs
- HtmlTableRow.cs
- TypeNameConverter.cs
- SignatureDescription.cs
- HtmlDocument.cs
- Slider.cs
- XmlNodeList.cs
- ResourceCategoryAttribute.cs
- ProtocolElement.cs
- RC2CryptoServiceProvider.cs
- MenuCommandService.cs
- ByteAnimationUsingKeyFrames.cs
- OleDbWrapper.cs
- GroupItem.cs
- NullableConverter.cs
- SqlConnectionFactory.cs
- RawStylusInput.cs
- MessageSecurityProtocol.cs
- PerfService.cs
- DialogResultConverter.cs
- SiteMapHierarchicalDataSourceView.cs
- ProcessProtocolHandler.cs
- ZipIOCentralDirectoryFileHeader.cs
- MDIClient.cs
- XmlEncodedRawTextWriter.cs
- UIElement3D.cs
- QueryRewriter.cs
- ClientBuildManagerCallback.cs
- DbConnectionPoolGroup.cs
- _RegBlobWebProxyDataBuilder.cs
- WorkflowApplicationEventArgs.cs