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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReadWriteObjectLock.cs
- ConnectionManagementElementCollection.cs
- NumericExpr.cs
- XamlStyleSerializer.cs
- CaseStatement.cs
- CmsUtils.cs
- ToolStripItemImageRenderEventArgs.cs
- BoundsDrawingContextWalker.cs
- TrackPoint.cs
- XmlWriterTraceListener.cs
- SchemaNotation.cs
- ComplexLine.cs
- TemplateControlCodeDomTreeGenerator.cs
- ItemList.cs
- LogManagementAsyncResult.cs
- PersonalizationProviderHelper.cs
- OperandQuery.cs
- SchemaImporterExtension.cs
- BindingSourceDesigner.cs
- ObjectStorage.cs
- XmlSignatureProperties.cs
- ThreadStartException.cs
- _UriTypeConverter.cs
- UIServiceHelper.cs
- ToolboxComponentsCreatingEventArgs.cs
- InkCanvasAutomationPeer.cs
- AbstractExpressions.cs
- xamlnodes.cs
- WebPartZoneCollection.cs
- BmpBitmapEncoder.cs
- PostBackTrigger.cs
- NativeMethods.cs
- WebEventTraceProvider.cs
- ListBoxItem.cs
- ToolStripPanelRow.cs
- BitConverter.cs
- WebPartCloseVerb.cs
- ExtensibleClassFactory.cs
- RoutedEventConverter.cs
- Activity.cs
- ModifierKeysConverter.cs
- CommandEventArgs.cs
- XmlILIndex.cs
- GregorianCalendar.cs
- CreateUserErrorEventArgs.cs
- MimeObjectFactory.cs
- Win32.cs
- MessageHeaderT.cs
- Filter.cs
- safelink.cs
- XmlSchemaComplexContentExtension.cs
- RegistryKey.cs
- HttpConfigurationContext.cs
- StorageMappingItemCollection.cs
- TextBlock.cs
- CharEnumerator.cs
- WsdlBuildProvider.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- RadioButtonStandardAdapter.cs
- TextRangeAdaptor.cs
- RegistrationServices.cs
- ProfileProvider.cs
- DrawingGroup.cs
- AssemblyName.cs
- CalloutQueueItem.cs
- FormViewInsertedEventArgs.cs
- ServiceBusyException.cs
- DataSourceExpression.cs
- PerformanceCounterPermissionEntry.cs
- BezierSegment.cs
- DataGridViewMethods.cs
- TextElementEditingBehaviorAttribute.cs
- LicenseContext.cs
- ItemsPresenter.cs
- CrossContextChannel.cs
- InvokePatternIdentifiers.cs
- MimeMapping.cs
- RequestCachePolicyConverter.cs
- EntityUtil.cs
- OleDbDataReader.cs
- DataSourceCollectionBase.cs
- HashAlgorithm.cs
- PreProcessor.cs
- StyleCollection.cs
- AnonymousIdentificationSection.cs
- TextSelectionProcessor.cs
- DirectionalLight.cs
- Int32Animation.cs
- AsymmetricKeyExchangeDeformatter.cs
- Publisher.cs
- TextEmbeddedObject.cs
- Control.cs
- CodePageUtils.cs
- BrowserPolicyValidator.cs
- HttpRuntime.cs
- EventBookmark.cs
- AccessibleObject.cs
- WinEventHandler.cs
- BindingExpression.cs
- DataTableClearEvent.cs