Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Handlers / TraceHandlerErrorFormatter.cs / 1305376 / 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;}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
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;}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RoleGroupCollection.cs
- NonVisualControlAttribute.cs
- WorkflowTerminatedException.cs
- WebPartDisplayMode.cs
- FileDataSource.cs
- RenderCapability.cs
- WebSysDisplayNameAttribute.cs
- MaskDescriptor.cs
- TextTreeText.cs
- DefaultMergeHelper.cs
- PrintPreviewControl.cs
- TextTreeNode.cs
- XmlSchema.cs
- AudioFormatConverter.cs
- HttpApplicationFactory.cs
- EventItfInfo.cs
- SerializationTrace.cs
- XmlSerializationWriter.cs
- XmlSchemaAnyAttribute.cs
- BinaryObjectWriter.cs
- BamlTreeUpdater.cs
- XmlComplianceUtil.cs
- DotExpr.cs
- CryptoProvider.cs
- TCEAdapterGenerator.cs
- BaseCAMarshaler.cs
- XhtmlBasicSelectionListAdapter.cs
- NamespaceList.cs
- DependencyProperty.cs
- ImageAutomationPeer.cs
- TcpChannelHelper.cs
- IndexOutOfRangeException.cs
- GregorianCalendarHelper.cs
- StartFileNameEditor.cs
- DropDownList.cs
- Clock.cs
- InteropEnvironment.cs
- MsmqIntegrationProcessProtocolHandler.cs
- WebConfigurationFileMap.cs
- URLAttribute.cs
- EmbeddedMailObject.cs
- Button.cs
- AddingNewEventArgs.cs
- ContextMenu.cs
- GeometryDrawing.cs
- ZoneButton.cs
- ExceptionUtil.cs
- ExpressionsCollectionConverter.cs
- ConstructorNeedsTagAttribute.cs
- Point3DAnimationBase.cs
- JournalNavigationScope.cs
- FixedSchema.cs
- DataGridViewCheckBoxColumn.cs
- TdsParserSessionPool.cs
- PageParserFilter.cs
- WindowsSspiNegotiation.cs
- ColumnWidthChangingEvent.cs
- ConditionalBranch.cs
- StackBuilderSink.cs
- BookmarkCallbackWrapper.cs
- CodeParameterDeclarationExpressionCollection.cs
- ServiceBehaviorElementCollection.cs
- DataRelation.cs
- SqlXmlStorage.cs
- NamedPipeConnectionPoolSettings.cs
- Win32PrintDialog.cs
- SiteMapProvider.cs
- EarlyBoundInfo.cs
- CqlGenerator.cs
- FamilyTypeface.cs
- ADConnectionHelper.cs
- DataSetViewSchema.cs
- DynamicDataRouteHandler.cs
- AttributeCollection.cs
- sitestring.cs
- ChannelManager.cs
- FileDetails.cs
- ListViewGroupItemCollection.cs
- UrlAuthFailedErrorFormatter.cs
- SendKeys.cs
- ResourceBinder.cs
- FileUtil.cs
- IMembershipProvider.cs
- InputMethodStateChangeEventArgs.cs
- DataGridRow.cs
- TargetInvocationException.cs
- Permission.cs
- TranslateTransform3D.cs
- TraceSource.cs
- PropertyGridEditorPart.cs
- PageAdapter.cs
- AccessText.cs
- XhtmlCssHandler.cs
- ChildrenQuery.cs
- PerfCounters.cs
- ListControl.cs
- PlainXmlSerializer.cs
- RuntimeWrappedException.cs
- CapacityStreamGeometryContext.cs
- CaseStatementSlot.cs