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
- BooleanConverter.cs
- SettingsSection.cs
- DayRenderEvent.cs
- NotifyInputEventArgs.cs
- TransformerConfigurationWizardBase.cs
- AtomParser.cs
- Automation.cs
- BitmapEffectGeneralTransform.cs
- GridViewRowPresenterBase.cs
- DesignerSerializationVisibilityAttribute.cs
- SoapCommonClasses.cs
- DataControlCommands.cs
- LocalValueEnumerator.cs
- MethodExpr.cs
- KeyValuePairs.cs
- EmptyReadOnlyDictionaryInternal.cs
- PixelFormats.cs
- DefaultObjectMappingItemCollection.cs
- ExceptionValidationRule.cs
- IgnoreFileBuildProvider.cs
- ControlLocalizer.cs
- ScrollItemPattern.cs
- IpcChannel.cs
- ListDesigner.cs
- Stroke.cs
- PhysicalAddress.cs
- HyperLink.cs
- BindingContext.cs
- MemoryMappedViewStream.cs
- DataGridViewAutoSizeModeEventArgs.cs
- BoundingRectTracker.cs
- DefaultProfileManager.cs
- MouseButtonEventArgs.cs
- RadioButtonFlatAdapter.cs
- ValidationEventArgs.cs
- GridViewDeleteEventArgs.cs
- CounterSampleCalculator.cs
- HitTestParameters.cs
- EntityCodeGenerator.cs
- MessageQueueAccessControlEntry.cs
- EntityUtil.cs
- QuaternionValueSerializer.cs
- RoleManagerSection.cs
- TouchesOverProperty.cs
- EdmTypeAttribute.cs
- NavigationEventArgs.cs
- SqlCacheDependencyDatabaseCollection.cs
- ErasingStroke.cs
- WebPartConnectionsEventArgs.cs
- AnonymousIdentificationSection.cs
- BitStack.cs
- MarshalDirectiveException.cs
- PrintPageEvent.cs
- ReferencedAssembly.cs
- FrameworkRichTextComposition.cs
- BrowserCapabilitiesCompiler.cs
- UseLicense.cs
- Point3DAnimation.cs
- UriTemplateClientFormatter.cs
- IItemProperties.cs
- TransactionContextValidator.cs
- CacheAxisQuery.cs
- AnnouncementService.cs
- SudsCommon.cs
- Nullable.cs
- baseaxisquery.cs
- AdornerPresentationContext.cs
- InstanceStore.cs
- FrameAutomationPeer.cs
- MouseActionValueSerializer.cs
- QueryTask.cs
- IDQuery.cs
- TagMapInfo.cs
- TextServicesDisplayAttribute.cs
- XPathPatternBuilder.cs
- DbCommandDefinition.cs
- PingReply.cs
- XmlCompatibilityReader.cs
- SerializerDescriptor.cs
- SynchronizedInputAdaptor.cs
- CollectionViewGroup.cs
- AppSettingsReader.cs
- ToolStripItemCollection.cs
- GridErrorDlg.cs
- PlatformCulture.cs
- EllipseGeometry.cs
- ContextDataSource.cs
- WindowsSspiNegotiation.cs
- RuleRef.cs
- WindowsButton.cs
- DataConnectionHelper.cs
- ColorBlend.cs
- GeometryCollection.cs
- AssemblyNameProxy.cs
- TcpChannelHelper.cs
- SqlTransaction.cs
- Matrix.cs
- Line.cs
- ProcessThreadDesigner.cs
- InnerItemCollectionView.cs