Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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;} } } } // 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
- ClipboardData.cs
- XmlUtf8RawTextWriter.cs
- DataGridViewRowConverter.cs
- AutoGeneratedField.cs
- SynchronizedChannelCollection.cs
- DataControlLinkButton.cs
- ImageFormatConverter.cs
- CodeArrayCreateExpression.cs
- LayoutTable.cs
- AsyncOperationManager.cs
- NullToBooleanConverter.cs
- TraceRecords.cs
- Int32Storage.cs
- CFGGrammar.cs
- ByteArrayHelperWithString.cs
- TimeManager.cs
- UserControl.cs
- ListBoxDesigner.cs
- CheckPair.cs
- Int32KeyFrameCollection.cs
- RegexWorker.cs
- TdsValueSetter.cs
- XamlClipboardData.cs
- StoreItemCollection.Loader.cs
- WebUtil.cs
- XPathScanner.cs
- DiscardableAttribute.cs
- CheckoutException.cs
- HttpRuntime.cs
- TouchesCapturedWithinProperty.cs
- HttpCookiesSection.cs
- CompiledRegexRunnerFactory.cs
- MenuCommandsChangedEventArgs.cs
- DateTimeOffsetConverter.cs
- CodeNamespaceImportCollection.cs
- WindowsListViewItemStartMenu.cs
- AssemblyAttributesGoHere.cs
- EnlistmentTraceIdentifier.cs
- DashStyle.cs
- bindurihelper.cs
- DoubleAnimationClockResource.cs
- DataObjectPastingEventArgs.cs
- PropertyValueUIItem.cs
- ReturnType.cs
- ChangePasswordAutoFormat.cs
- NameValueCollection.cs
- PageParser.cs
- OrthographicCamera.cs
- Errors.cs
- RoleExceptions.cs
- StreamReader.cs
- LineVisual.cs
- InheritanceAttribute.cs
- RawStylusSystemGestureInputReport.cs
- RayMeshGeometry3DHitTestResult.cs
- ProviderSettingsCollection.cs
- StringFreezingAttribute.cs
- DataGridSortCommandEventArgs.cs
- XPathNavigatorReader.cs
- SqlDataSourceQueryEditor.cs
- COM2ColorConverter.cs
- SafeNativeMethodsCLR.cs
- DesignerActionMethodItem.cs
- KeyboardEventArgs.cs
- OdbcEnvironment.cs
- CodeNamespace.cs
- VectorConverter.cs
- InputScopeAttribute.cs
- PropertyTab.cs
- XmlSchemaImporter.cs
- ClientFactory.cs
- Stack.cs
- ObjectView.cs
- DataObject.cs
- OrderedDictionaryStateHelper.cs
- COAUTHIDENTITY.cs
- EnumBuilder.cs
- CurrencyWrapper.cs
- Hash.cs
- DispatchWrapper.cs
- RTLAwareMessageBox.cs
- EmptyStringExpandableObjectConverter.cs
- uribuilder.cs
- PolicyLevel.cs
- ToolStripContainerActionList.cs
- NumericUpDown.cs
- TextTreeInsertElementUndoUnit.cs
- SystemSounds.cs
- AvTraceFormat.cs
- PeerCollaboration.cs
- XmlSchemaObject.cs
- ByteStreamGeometryContext.cs
- EFDataModelProvider.cs
- MultiBinding.cs
- SourceSwitch.cs
- ReferenceConverter.cs
- MethodAccessException.cs
- SafeNativeMethodsOther.cs
- WebPartEventArgs.cs
- OracleColumn.cs