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
- Contracts.cs
- TraceListeners.cs
- Serializer.cs
- SystemWebExtensionsSectionGroup.cs
- HopperCache.cs
- SnapLine.cs
- XPathNavigator.cs
- VirtualizedContainerService.cs
- UxThemeWrapper.cs
- TemporaryBitmapFile.cs
- ByteStream.cs
- DrawingServices.cs
- BamlLocalizationDictionary.cs
- ListViewItem.cs
- TemplateBamlTreeBuilder.cs
- SafeWaitHandle.cs
- RowTypeElement.cs
- EdmFunction.cs
- AnnotationResource.cs
- EmptyReadOnlyDictionaryInternal.cs
- Animatable.cs
- GeneralTransform3D.cs
- PointCollectionValueSerializer.cs
- TypeElement.cs
- IDispatchConstantAttribute.cs
- WindowsFormsLinkLabel.cs
- WindowPattern.cs
- EventSetterHandlerConverter.cs
- SafeLibraryHandle.cs
- HandlerFactoryWrapper.cs
- FrameworkPropertyMetadata.cs
- ConditionalAttribute.cs
- ListControlDataBindingHandler.cs
- HttpVersion.cs
- ValueChangedEventManager.cs
- EdmFunction.cs
- LoginName.cs
- WebPartAddingEventArgs.cs
- ObjectPersistData.cs
- IndentedWriter.cs
- XmlSchemaAnyAttribute.cs
- LOSFormatter.cs
- DropShadowBitmapEffect.cs
- AspNetHostingPermission.cs
- LayoutUtils.cs
- MethodMessage.cs
- XamlDesignerSerializationManager.cs
- DataFormats.cs
- TextSchema.cs
- RequestQueryParser.cs
- EdmError.cs
- PositiveTimeSpanValidatorAttribute.cs
- ProtocolViolationException.cs
- HandleRef.cs
- SmtpNegotiateAuthenticationModule.cs
- SortKey.cs
- InputScope.cs
- Literal.cs
- ResXBuildProvider.cs
- VisualBrush.cs
- RuleSetCollection.cs
- ReflectionPermission.cs
- WizardStepCollectionEditor.cs
- UnconditionalPolicy.cs
- BooleanFunctions.cs
- DataFieldConverter.cs
- CompositeCollection.cs
- RijndaelManagedTransform.cs
- CachedPathData.cs
- XmlDataFileEditor.cs
- GregorianCalendar.cs
- ControlCollection.cs
- DataPager.cs
- UserMapPath.cs
- RecommendedAsConfigurableAttribute.cs
- Brush.cs
- ImageInfo.cs
- CodeNamespace.cs
- FixedFindEngine.cs
- ClientSession.cs
- FileDialog.cs
- ByteConverter.cs
- ViewSimplifier.cs
- TemplatedMailWebEventProvider.cs
- Image.cs
- NameValueFileSectionHandler.cs
- DockingAttribute.cs
- TextFormatter.cs
- XhtmlTextWriter.cs
- _SpnDictionary.cs
- precedingsibling.cs
- BindingCollection.cs
- CatalogPart.cs
- ToolStripContainerActionList.cs
- ConfigurationPropertyAttribute.cs
- ReachNamespaceInfo.cs
- StateMachineAction.cs
- XsdValidatingReader.cs
- SamlNameIdentifierClaimResource.cs
- FixedSOMTableCell.cs