Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Adapters / WmlLiteralTextAdapter.cs / 1305376 / WmlLiteralTextAdapter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.IO; using System.Web; using System.Web.UI; using System.Web.UI.MobileControls; using System.Drawing; using System.Security.Permissions; #if COMPILING_FOR_SHIPPED_SOURCE namespace System.Web.UI.MobileControls.ShippedAdapterSource #else namespace System.Web.UI.MobileControls.Adapters #endif { /* * WmlLiteralTextAdapter class. * * Copyright (c) 2000 Microsoft Corporation */ ///[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 WmlLiteralTextAdapter : WmlControlAdapter { /// protected new LiteralText Control { get { return (LiteralText)base.Control; } } String _pagedText; /// public override void Render(WmlMobileTextWriter writer) { // Cache value, because Render is called twice. if (_pagedText == null) { _pagedText = Control.PagedText; } writer.EnterFormat(Style); writer.RenderText(_pagedText, Control.BreakAfter); writer.ExitFormat(Style); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.IO; using System.Web; using System.Web.UI; using System.Web.UI.MobileControls; using System.Drawing; using System.Security.Permissions; #if COMPILING_FOR_SHIPPED_SOURCE namespace System.Web.UI.MobileControls.ShippedAdapterSource #else namespace System.Web.UI.MobileControls.Adapters #endif { /* * WmlLiteralTextAdapter class. * * Copyright (c) 2000 Microsoft Corporation */ ///[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 WmlLiteralTextAdapter : WmlControlAdapter { /// protected new LiteralText Control { get { return (LiteralText)base.Control; } } String _pagedText; /// public override void Render(WmlMobileTextWriter writer) { // Cache value, because Render is called twice. if (_pagedText == null) { _pagedText = Control.PagedText; } writer.EnterFormat(Style); writer.RenderText(_pagedText, Control.BreakAfter); writer.ExitFormat(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
- KnownTypesProvider.cs
- AssemblyAttributes.cs
- ToolZone.cs
- Vector3DIndependentAnimationStorage.cs
- FileUpload.cs
- ScriptingWebServicesSectionGroup.cs
- DnsEndpointIdentity.cs
- WinEventQueueItem.cs
- CngAlgorithmGroup.cs
- ThreadPool.cs
- Synchronization.cs
- Duration.cs
- CodeExporter.cs
- ReachUIElementCollectionSerializerAsync.cs
- NameService.cs
- Pair.cs
- FormatterConverter.cs
- TypeRefElement.cs
- DelegatingMessage.cs
- TransformCryptoHandle.cs
- XmlSerializationReader.cs
- ToolStripProgressBar.cs
- ListParagraph.cs
- PropertyRecord.cs
- NameObjectCollectionBase.cs
- JsonDeserializer.cs
- counter.cs
- XpsDocumentEvent.cs
- serverconfig.cs
- StylusButton.cs
- XamlTemplateSerializer.cs
- WebColorConverter.cs
- DictionaryBase.cs
- ErrorTableItemStyle.cs
- SafeArrayTypeMismatchException.cs
- DynamicDocumentPaginator.cs
- IDQuery.cs
- ImageDrawing.cs
- AdornerHitTestResult.cs
- RTLAwareMessageBox.cs
- ApplicationId.cs
- CodeExporter.cs
- KeyGestureValueSerializer.cs
- Context.cs
- ClientSession.cs
- BindingMAnagerBase.cs
- SimpleExpression.cs
- AllowedAudienceUriElementCollection.cs
- OuterGlowBitmapEffect.cs
- CodeDirectionExpression.cs
- DataGridAddNewRow.cs
- WSTrustDec2005.cs
- DataGridViewCellLinkedList.cs
- UrlPropertyAttribute.cs
- ToolStripItemEventArgs.cs
- EndpointInfoCollection.cs
- SrgsNameValueTag.cs
- SortFieldComparer.cs
- DesignerLoader.cs
- ObjectDataSourceView.cs
- UseManagedPresentationBindingElementImporter.cs
- TypefaceMap.cs
- DependencyPropertyKind.cs
- QueryContinueDragEventArgs.cs
- IdentityHolder.cs
- CorrelationRequestContext.cs
- NullableConverter.cs
- PropertyMetadata.cs
- ApplicationActivator.cs
- CodePageEncoding.cs
- TransactedReceiveScope.cs
- DataService.cs
- TabletDeviceInfo.cs
- UnknownBitmapEncoder.cs
- XamlFrame.cs
- _RequestCacheProtocol.cs
- OracleNumber.cs
- TypeUsageBuilder.cs
- RegionInfo.cs
- ShapingWorkspace.cs
- sapiproxy.cs
- SoapElementAttribute.cs
- Timer.cs
- FontDialog.cs
- EntityClientCacheKey.cs
- TextShapeableCharacters.cs
- DelegateTypeInfo.cs
- RijndaelManaged.cs
- HtmlTernaryTree.cs
- PageFunction.cs
- TypedRowGenerator.cs
- BinaryObjectWriter.cs
- ConfigXmlSignificantWhitespace.cs
- PathBox.cs
- SqlDataReader.cs
- ValidateNames.cs
- XmlTextEncoder.cs
- XmlWrappingWriter.cs
- MasterPageBuildProvider.cs
- ToolStripSplitStackLayout.cs