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
- PresentationAppDomainManager.cs
- EventListener.cs
- ParameterModifier.cs
- XXXInfos.cs
- PersonalizationDictionary.cs
- NoResizeHandleGlyph.cs
- ScrollItemProviderWrapper.cs
- RightsManagementUser.cs
- InputScopeConverter.cs
- Error.cs
- SrgsOneOf.cs
- _SSPISessionCache.cs
- TableProviderWrapper.cs
- mactripleDES.cs
- ToolStripAdornerWindowService.cs
- PostBackTrigger.cs
- xml.cs
- FileEnumerator.cs
- PasswordValidationException.cs
- CodeDelegateCreateExpression.cs
- CreateUserErrorEventArgs.cs
- BitmapEffectCollection.cs
- URL.cs
- OleDbRowUpdatingEvent.cs
- DifferencingCollection.cs
- DataGridView.cs
- TdsValueSetter.cs
- AccessedThroughPropertyAttribute.cs
- UdpTransportSettingsElement.cs
- RegexWriter.cs
- PeerApplicationLaunchInfo.cs
- _DisconnectOverlappedAsyncResult.cs
- Int64Animation.cs
- Statements.cs
- CodeDirectionExpression.cs
- GridViewEditEventArgs.cs
- DrawingVisualDrawingContext.cs
- HtmlForm.cs
- Axis.cs
- NumericUpDown.cs
- XmlSiteMapProvider.cs
- InlinedAggregationOperatorEnumerator.cs
- ObjectComplexPropertyMapping.cs
- StyleXamlTreeBuilder.cs
- SimpleHandlerFactory.cs
- ThreadPool.cs
- GroupQuery.cs
- RankException.cs
- CompilerScopeManager.cs
- ReflectionHelper.cs
- ProviderConnectionPoint.cs
- DbProviderFactories.cs
- WebFormDesignerActionService.cs
- SelectedDatesCollection.cs
- HttpPostLocalhostServerProtocol.cs
- RemotingClientProxy.cs
- HttpCapabilitiesBase.cs
- DataServiceKeyAttribute.cs
- HttpClientCertificate.cs
- VisualStyleInformation.cs
- IntSecurity.cs
- XmlQueryOutput.cs
- TextViewDesigner.cs
- AdPostCacheSubstitution.cs
- OLEDB_Enum.cs
- LoginViewDesigner.cs
- OperatingSystem.cs
- Delegate.cs
- Label.cs
- WpfPayload.cs
- _ConnectOverlappedAsyncResult.cs
- GeneralTransform3DTo2D.cs
- DeflateEmulationStream.cs
- ServiceOperationUIEditor.cs
- Vector3dCollection.cs
- PrePostDescendentsWalker.cs
- SynchronizingStream.cs
- TraceSection.cs
- TrackingStringDictionary.cs
- BaseTemplateBuildProvider.cs
- _NetRes.cs
- StreamUpdate.cs
- OdbcConnectionString.cs
- TypeBuilderInstantiation.cs
- ResXResourceReader.cs
- EncodingTable.cs
- SelectionPatternIdentifiers.cs
- XamlVector3DCollectionSerializer.cs
- AlternateView.cs
- StorageConditionPropertyMapping.cs
- StringReader.cs
- CFStream.cs
- ListMarkerLine.cs
- SymmetricCryptoHandle.cs
- AutoResizedEvent.cs
- ApplicationException.cs
- MDIClient.cs
- ToolZone.cs
- StreamGeometry.cs
- LogEntrySerializer.cs