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
- GeometryCollection.cs
- AdapterUtil.cs
- StatusBarPanelClickEvent.cs
- FileDialogCustomPlacesCollection.cs
- Header.cs
- LeftCellWrapper.cs
- OleDbDataReader.cs
- DirectoryObjectSecurity.cs
- WorkflowService.cs
- ScriptBehaviorDescriptor.cs
- Image.cs
- MapPathBasedVirtualPathProvider.cs
- PauseStoryboard.cs
- CodeDOMProvider.cs
- TaskScheduler.cs
- ProcessProtocolHandler.cs
- ParserStreamGeometryContext.cs
- UiaCoreApi.cs
- TimersDescriptionAttribute.cs
- OlePropertyStructs.cs
- DbBuffer.cs
- _NestedMultipleAsyncResult.cs
- PerfCounters.cs
- HttpApplicationFactory.cs
- SafeEventLogWriteHandle.cs
- HighContrastHelper.cs
- Converter.cs
- SamlAuthorityBinding.cs
- ClientScriptManager.cs
- ForwardPositionQuery.cs
- arabicshape.cs
- MSHTMLHostUtil.cs
- ResXFileRef.cs
- _SslStream.cs
- HorizontalAlignConverter.cs
- SafeMemoryMappedViewHandle.cs
- streamingZipPartStream.cs
- OleDbConnectionFactory.cs
- MetadataHelper.cs
- KeyboardNavigation.cs
- DataStorage.cs
- WpfKnownMemberInvoker.cs
- SecurityTokenReferenceStyle.cs
- StrongNameUtility.cs
- Viewport3DAutomationPeer.cs
- SyndicationLink.cs
- SqlPersonalizationProvider.cs
- OdbcCommandBuilder.cs
- XsdDataContractExporter.cs
- ImplicitInputBrush.cs
- typedescriptorpermission.cs
- RightsController.cs
- FormViewPageEventArgs.cs
- QuaternionAnimation.cs
- CommandID.cs
- HtmlTable.cs
- ConnectionPoint.cs
- LinearGradientBrush.cs
- SchemaInfo.cs
- SHA256.cs
- ConfigErrorGlyph.cs
- SubclassTypeValidator.cs
- ActivationArguments.cs
- XmlMemberMapping.cs
- SupportsEventValidationAttribute.cs
- ServiceDocumentFormatter.cs
- DependsOnAttribute.cs
- Int64Storage.cs
- AnonymousIdentificationSection.cs
- VisualStyleTypesAndProperties.cs
- DataControlLinkButton.cs
- DateTimeFormat.cs
- _LazyAsyncResult.cs
- ScrollProviderWrapper.cs
- FormatException.cs
- AsymmetricKeyExchangeFormatter.cs
- EncodingInfo.cs
- SignatureResourceHelper.cs
- ConditionalExpression.cs
- GraphicsState.cs
- AsnEncodedData.cs
- TypeElement.cs
- bidPrivateBase.cs
- MenuBase.cs
- ToolstripProfessionalRenderer.cs
- Hex.cs
- BamlResourceContent.cs
- Style.cs
- XmlBoundElement.cs
- TextComposition.cs
- PreProcessor.cs
- SqlLiftIndependentRowExpressions.cs
- XmlIncludeAttribute.cs
- InputProcessorProfiles.cs
- _BaseOverlappedAsyncResult.cs
- AddInServer.cs
- WindowsRegion.cs
- AlternateViewCollection.cs
- FileUpload.cs
- Application.cs