Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectSet.cs
- SigningCredentials.cs
- MatrixCamera.cs
- WebUtil.cs
- FigureParagraph.cs
- PolyLineSegmentFigureLogic.cs
- LayoutEngine.cs
- DataTableMapping.cs
- SafeLibraryHandle.cs
- SequentialOutput.cs
- Icon.cs
- DataGridViewTextBoxCell.cs
- HtmlFormWrapper.cs
- ExpressionBindings.cs
- StringKeyFrameCollection.cs
- xamlnodes.cs
- ProviderIncompatibleException.cs
- GregorianCalendar.cs
- InnerItemCollectionView.cs
- SessionEndingCancelEventArgs.cs
- Helper.cs
- TemplateControlCodeDomTreeGenerator.cs
- MenuAutomationPeer.cs
- CryptoStream.cs
- NavigatorInvalidBodyAccessException.cs
- DatePickerTextBox.cs
- WindowsListViewGroupHelper.cs
- PageBreakRecord.cs
- BooleanToVisibilityConverter.cs
- GreenMethods.cs
- CodeSnippetTypeMember.cs
- SmiSettersStream.cs
- WmpBitmapDecoder.cs
- ComponentSerializationService.cs
- PackageStore.cs
- PackageFilter.cs
- SHA1.cs
- RTLAwareMessageBox.cs
- DesignBindingValueUIHandler.cs
- ToolStripContentPanel.cs
- BypassElement.cs
- XPathParser.cs
- DesignerActionGlyph.cs
- HitTestParameters3D.cs
- WebPartEditorApplyVerb.cs
- RepeaterCommandEventArgs.cs
- WebPartZone.cs
- ISessionStateStore.cs
- WorkflowServiceNamespace.cs
- OleDbSchemaGuid.cs
- HoistedLocals.cs
- XmlDataFileEditor.cs
- MemberRelationshipService.cs
- X509RecipientCertificateClientElement.cs
- SearchExpression.cs
- XmlProcessingInstruction.cs
- CursorConverter.cs
- XmlWellformedWriter.cs
- ValueConversionAttribute.cs
- HostVisual.cs
- RelationshipConstraintValidator.cs
- SiteMapProvider.cs
- ModelChangedEventArgsImpl.cs
- StringUtil.cs
- SubtreeProcessor.cs
- ScrollContentPresenter.cs
- InsufficientMemoryException.cs
- TextWriter.cs
- DelegateBodyWriter.cs
- ColorTransform.cs
- CacheHelper.cs
- EntityContainerEmitter.cs
- DataGridView.cs
- TranslateTransform.cs
- ConvertersCollection.cs
- FixedTextPointer.cs
- RenderTargetBitmap.cs
- BrowserCapabilitiesFactory.cs
- SamlSecurityTokenAuthenticator.cs
- activationcontext.cs
- EmptyQuery.cs
- AutomationTextAttribute.cs
- _NetworkingPerfCounters.cs
- relpropertyhelper.cs
- EncoderExceptionFallback.cs
- ResourceDescriptionAttribute.cs
- MergeFilterQuery.cs
- SqlRetyper.cs
- AutomationInteropProvider.cs
- HeaderedContentControl.cs
- QuaternionConverter.cs
- SqlNode.cs
- HttpListenerElement.cs
- AuthenticationSection.cs
- RetriableClipboard.cs
- BitmapEffectInput.cs
- SQLCharsStorage.cs
- CompressionTransform.cs
- DBPropSet.cs
- Animatable.cs