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
- BCryptNative.cs
- _OSSOCK.cs
- SqlColumnizer.cs
- GenericTextProperties.cs
- ResourceBinder.cs
- EventProxy.cs
- DPCustomTypeDescriptor.cs
- InitializerFacet.cs
- UnsafeNativeMethods.cs
- ViewEventArgs.cs
- BinaryFormatter.cs
- OdbcConnectionStringbuilder.cs
- MenuCommand.cs
- TypeValidationEventArgs.cs
- ToolStripStatusLabel.cs
- QueryContinueDragEvent.cs
- SecureUICommand.cs
- PasswordPropertyTextAttribute.cs
- ClientScriptManager.cs
- DbException.cs
- RuntimeConfigLKG.cs
- ChtmlLinkAdapter.cs
- ConstraintStruct.cs
- EncryptedPackageFilter.cs
- Rule.cs
- TreeViewHitTestInfo.cs
- Grammar.cs
- XPathException.cs
- SmiSettersStream.cs
- SqlRowUpdatedEvent.cs
- ControlParameter.cs
- HTMLTextWriter.cs
- EntityProviderFactory.cs
- ObjectListShowCommandsEventArgs.cs
- OverflowException.cs
- DataContractJsonSerializer.cs
- DiscoveryExceptionDictionary.cs
- CombinedHttpChannel.cs
- CodeMethodInvokeExpression.cs
- EndEvent.cs
- HasCopySemanticsAttribute.cs
- FixedPage.cs
- Thumb.cs
- FullTextLine.cs
- COM2IProvidePropertyBuilderHandler.cs
- RichTextBox.cs
- ErrorProvider.cs
- SqlMethodCallConverter.cs
- DeviceContext.cs
- QueryCursorEventArgs.cs
- Italic.cs
- translator.cs
- TypedRowHandler.cs
- OleDbParameterCollection.cs
- SystemDropShadowChrome.cs
- XmlEncodedRawTextWriter.cs
- Accessible.cs
- RoleManagerModule.cs
- MulticastNotSupportedException.cs
- WindowsAuthenticationModule.cs
- ObjectPersistData.cs
- Expression.DebuggerProxy.cs
- MobileControlPersister.cs
- XmlDataDocument.cs
- MemoryMappedFileSecurity.cs
- XmlAnyElementAttributes.cs
- SolidColorBrush.cs
- GatewayIPAddressInformationCollection.cs
- FrameAutomationPeer.cs
- ToolStripSeparatorRenderEventArgs.cs
- EmptyEnumerable.cs
- CurrentChangingEventArgs.cs
- WindowsSecurityTokenAuthenticator.cs
- Interlocked.cs
- ListViewItem.cs
- MenuEventArgs.cs
- KeyEvent.cs
- DbRetry.cs
- EncoderReplacementFallback.cs
- X509ChainElement.cs
- BehaviorEditorPart.cs
- ContentElementAutomationPeer.cs
- Image.cs
- RequestCachingSection.cs
- UInt32Converter.cs
- NativeMethods.cs
- ActivityXamlServices.cs
- BulletChrome.cs
- ExtensionSimplifierMarkupObject.cs
- InlinedAggregationOperatorEnumerator.cs
- PresentationAppDomainManager.cs
- SemaphoreSecurity.cs
- CompilerCollection.cs
- MDIWindowDialog.cs
- ClientTarget.cs
- TextBlockAutomationPeer.cs
- SafeNativeMethods.cs
- PackageRelationship.cs
- ValidationPropertyAttribute.cs
- SmtpNegotiateAuthenticationModule.cs