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
- InvokeWebService.cs
- AssertFilter.cs
- FontUnit.cs
- SpotLight.cs
- RemoteWebConfigurationHostServer.cs
- NativeMethods.cs
- Positioning.cs
- TransportContext.cs
- Matrix3D.cs
- PasswordRecovery.cs
- SystemDiagnosticsSection.cs
- ComponentTray.cs
- BinaryObjectWriter.cs
- PolicyManager.cs
- TitleStyle.cs
- TaiwanLunisolarCalendar.cs
- RC2.cs
- ColorKeyFrameCollection.cs
- SqlTriggerContext.cs
- TypeConverterHelper.cs
- BounceEase.cs
- _OSSOCK.cs
- M3DUtil.cs
- WebBrowserBase.cs
- DynamicResourceExtension.cs
- XmlDataLoader.cs
- ClearTypeHintValidation.cs
- coordinatorfactory.cs
- NonParentingControl.cs
- WriteTimeStream.cs
- ObjectConverter.cs
- FunctionDetailsReader.cs
- Cast.cs
- XmlReader.cs
- LongValidator.cs
- Helpers.cs
- WebBaseEventKeyComparer.cs
- SpeechRecognizer.cs
- TaiwanCalendar.cs
- ExitEventArgs.cs
- LocalValueEnumerator.cs
- CachingHintValidation.cs
- BufferModesCollection.cs
- TextTreeUndo.cs
- AppModelKnownContentFactory.cs
- CacheDependency.cs
- MaterialCollection.cs
- WebPartConnectVerb.cs
- ValueConversionAttribute.cs
- _TimerThread.cs
- HttpContext.cs
- HttpAsyncResult.cs
- BrowserCapabilitiesFactory.cs
- OpenFileDialog.cs
- Walker.cs
- HostingEnvironmentException.cs
- StrongTypingException.cs
- ArithmeticException.cs
- Parsers.cs
- WindowsAuthenticationModule.cs
- EventLogPermissionAttribute.cs
- TdsParameterSetter.cs
- TextServicesCompartmentContext.cs
- SequentialUshortCollection.cs
- XmlDeclaration.cs
- XmlElement.cs
- ValidatorUtils.cs
- FileController.cs
- MasterPageCodeDomTreeGenerator.cs
- RemoveStoryboard.cs
- Menu.cs
- CookielessHelper.cs
- BStrWrapper.cs
- WSTrust.cs
- FlowLayoutPanel.cs
- CompareValidator.cs
- PathGradientBrush.cs
- XmlSchemaAnnotated.cs
- IsolatedStorageException.cs
- SqlHelper.cs
- WebServiceReceive.cs
- AutomationAttributeInfo.cs
- XmlWhitespace.cs
- CompositeActivityTypeDescriptor.cs
- MimeXmlImporter.cs
- LazyLoadBehavior.cs
- NonDualMessageSecurityOverHttp.cs
- HijriCalendar.cs
- EmptyWithCancelationCheckWorkItem.cs
- GenericWebPart.cs
- TypefaceMetricsCache.cs
- DefaultSection.cs
- _Semaphore.cs
- SchemaImporterExtensionsSection.cs
- PartialList.cs
- WinEventHandler.cs
- UICuesEvent.cs
- PrintPreviewGraphics.cs
- Utils.cs
- ADRoleFactoryConfiguration.cs