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
- ListViewItem.cs
- RegexGroup.cs
- XmlSchemaDocumentation.cs
- FilterEventArgs.cs
- ClassicBorderDecorator.cs
- InvalidOperationException.cs
- SqlBulkCopy.cs
- RecommendedAsConfigurableAttribute.cs
- ConfigXmlSignificantWhitespace.cs
- WindowsRegion.cs
- DesignerMetadata.cs
- PtsHost.cs
- EntitySqlQueryCacheKey.cs
- WebPartDescription.cs
- CachedFontFace.cs
- TcpDuplicateContext.cs
- BooleanProjectedSlot.cs
- WorkflowRuntimeSection.cs
- SubMenuStyleCollection.cs
- EnumValidator.cs
- HorizontalAlignConverter.cs
- XmlQueryStaticData.cs
- TextBoxRenderer.cs
- XmlTextWriter.cs
- WebColorConverter.cs
- SerializationEventsCache.cs
- DataServiceHostFactory.cs
- FollowerQueueCreator.cs
- AlternateViewCollection.cs
- Constraint.cs
- VectorCollection.cs
- DefaultPrintController.cs
- GacUtil.cs
- IpcManager.cs
- OlePropertyStructs.cs
- RankException.cs
- RegexRunner.cs
- SymDocumentType.cs
- XmlMapping.cs
- HMACSHA256.cs
- StylusOverProperty.cs
- HandledMouseEvent.cs
- ListenerSessionConnectionReader.cs
- ToolboxComponentsCreatedEventArgs.cs
- SoundPlayer.cs
- TypeNameConverter.cs
- precedingsibling.cs
- Parameter.cs
- Util.cs
- VScrollBar.cs
- ListenerElementsCollection.cs
- DataSourceCacheDurationConverter.cs
- WaitForChangedResult.cs
- cookiecontainer.cs
- IconConverter.cs
- SpecialNameAttribute.cs
- SafeLibraryHandle.cs
- Validator.cs
- AnimationClock.cs
- CommandField.cs
- WorkflowTransactionOptions.cs
- MediaTimeline.cs
- WebPartMinimizeVerb.cs
- ComponentDesigner.cs
- NamespaceList.cs
- PhysicalOps.cs
- FilterQueryOptionExpression.cs
- DescendantBaseQuery.cs
- PointConverter.cs
- OneOfTypeConst.cs
- IntranetCredentialPolicy.cs
- ClientConfigurationHost.cs
- RecognizerStateChangedEventArgs.cs
- NestPullup.cs
- TextContainer.cs
- IndexingContentUnit.cs
- UInt64Converter.cs
- XmlDataDocument.cs
- TypedElement.cs
- ScrollableControl.cs
- ProvidersHelper.cs
- DataServiceQueryException.cs
- RectAnimationUsingKeyFrames.cs
- IISMapPath.cs
- __ConsoleStream.cs
- TextElementCollection.cs
- XmlSchemaDatatype.cs
- IndexedEnumerable.cs
- GridSplitterAutomationPeer.cs
- TypeConverterHelper.cs
- BStrWrapper.cs
- SqlDataSourceQuery.cs
- ModelUtilities.cs
- SystemUdpStatistics.cs
- LinqDataSourceStatusEventArgs.cs
- SpecialFolderEnumConverter.cs
- CompilerCollection.cs
- EditCommandColumn.cs
- Int32Rect.cs
- SQLDateTimeStorage.cs