Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Adapters / XhtmlAdapters / XhtmlBasicLiteralTextAdapter.cs / 1305376 / XhtmlBasicLiteralTextAdapter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Security.Permissions; using System.Web.Mobile; using System.Web.UI.MobileControls; using System.Web.UI.MobileControls.Adapters; using System; #if COMPILING_FOR_SHIPPED_SOURCE namespace System.Web.UI.MobileControls.ShippedAdapterSource.XhtmlAdapters #else namespace System.Web.UI.MobileControls.Adapters.XhtmlAdapters #endif { ///[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")] public class XhtmlLiteralTextAdapter : XhtmlControlAdapter { /// protected new LiteralText Control { get { return base.Control as LiteralText; } } /// public override void Render(XhtmlMobileTextWriter writer) { // ConditionalClearCachedEndTag() is for a device special case. ConditionalClearCachedEndTag(writer, Control.Text); String text = Control.PagedText; ConditionalEnterStyle(writer, Style); ConditionalRenderOpeningSpanElement(writer); writer.WritePendingBreak(); writer.WriteEncodedText(text); // ConditionalSetPendingBreak should always be called *before* ConditionalExitStyle. // ConditionalExitStyle may render a block element and clear the pending break. ConditionalSetPendingBreak(writer); ConditionalRenderClosingSpanElement(writer); ConditionalExitStyle(writer, Style); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Security.Permissions; using System.Web.Mobile; using System.Web.UI.MobileControls; using System.Web.UI.MobileControls.Adapters; using System; #if COMPILING_FOR_SHIPPED_SOURCE namespace System.Web.UI.MobileControls.ShippedAdapterSource.XhtmlAdapters #else namespace System.Web.UI.MobileControls.Adapters.XhtmlAdapters #endif { ///[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")] public class XhtmlLiteralTextAdapter : XhtmlControlAdapter { /// protected new LiteralText Control { get { return base.Control as LiteralText; } } /// public override void Render(XhtmlMobileTextWriter writer) { // ConditionalClearCachedEndTag() is for a device special case. ConditionalClearCachedEndTag(writer, Control.Text); String text = Control.PagedText; ConditionalEnterStyle(writer, Style); ConditionalRenderOpeningSpanElement(writer); writer.WritePendingBreak(); writer.WriteEncodedText(text); // ConditionalSetPendingBreak should always be called *before* ConditionalExitStyle. // ConditionalExitStyle may render a block element and clear the pending break. ConditionalSetPendingBreak(writer); ConditionalRenderClosingSpanElement(writer); ConditionalExitStyle(writer, Style); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridRowEventArgs.cs
- ProcessHostFactoryHelper.cs
- ScalarConstant.cs
- DataPagerFieldItem.cs
- SafeNativeMethods.cs
- HttpWrapper.cs
- PublishLicense.cs
- ViewStateChangedEventArgs.cs
- HtmlInputImage.cs
- SecurityTokenRequirement.cs
- AnnotationDocumentPaginator.cs
- ScrollBar.cs
- Rotation3DKeyFrameCollection.cs
- X509PeerCertificateAuthenticationElement.cs
- BrowserDefinition.cs
- SettingsSavedEventArgs.cs
- DocumentReferenceCollection.cs
- CompositeActivityDesigner.cs
- HashLookup.cs
- X509CertificateStore.cs
- Sql8ConformanceChecker.cs
- AccessorTable.cs
- PrinterSettings.cs
- SizeKeyFrameCollection.cs
- ApplicationTrust.cs
- DataGridViewCellStyleConverter.cs
- ObjectListField.cs
- SplitterEvent.cs
- Solver.cs
- XmlAttributeCollection.cs
- PrtCap_Public.cs
- XmlIterators.cs
- SapiGrammar.cs
- SqlDataRecord.cs
- ResourceReferenceExpressionConverter.cs
- WebBrowserNavigatingEventHandler.cs
- InkCanvasSelectionAdorner.cs
- LinkArea.cs
- GenericTypeParameterConverter.cs
- ExcCanonicalXml.cs
- ReadOnlyDictionary.cs
- EventSetter.cs
- InstanceValue.cs
- FrameworkContentElementAutomationPeer.cs
- WhitespaceRuleLookup.cs
- GraphicsState.cs
- WebPermission.cs
- NetworkInformationException.cs
- XmlDataSourceView.cs
- PopupControlService.cs
- SizeAnimationBase.cs
- ConfigXmlAttribute.cs
- DataRelation.cs
- XmlNodeChangedEventManager.cs
- StateMachineHelpers.cs
- HttpModuleAction.cs
- WebContentFormatHelper.cs
- TreeNode.cs
- GeometryCombineModeValidation.cs
- NumberSubstitution.cs
- FixedSOMTextRun.cs
- VariableAction.cs
- WinInetCache.cs
- SoapSchemaExporter.cs
- ByteStream.cs
- PaintEvent.cs
- ButtonBaseAdapter.cs
- FontFaceLayoutInfo.cs
- WebPartMenu.cs
- StyleCollectionEditor.cs
- StylusLogic.cs
- path.cs
- ControlIdConverter.cs
- XamlGridLengthSerializer.cs
- ComboBoxRenderer.cs
- DoubleCollectionValueSerializer.cs
- ClientFormsAuthenticationMembershipProvider.cs
- DerivedKeySecurityToken.cs
- EditorZone.cs
- CqlParser.cs
- GetKeyedHashRequest.cs
- ListViewSelectEventArgs.cs
- EntityDataSourceViewSchema.cs
- SoapReflectionImporter.cs
- JournalEntryListConverter.cs
- ThicknessAnimationBase.cs
- NamespaceDecl.cs
- RowsCopiedEventArgs.cs
- PolyLineSegment.cs
- Parser.cs
- LoadedOrUnloadedOperation.cs
- ExtentJoinTreeNode.cs
- SettingsPropertyWrongTypeException.cs
- HttpHandlerActionCollection.cs
- ForceCopyBuildProvider.cs
- ConvertersCollection.cs
- UnlockInstanceAsyncResult.cs
- GcHandle.cs
- TextEditorTables.cs
- PerformanceCounterLib.cs