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
- TypeExtension.cs
- XmlNodeList.cs
- DetectRunnableInstancesTask.cs
- PeerResolver.cs
- HiddenFieldPageStatePersister.cs
- TimelineGroup.cs
- ZeroOpNode.cs
- TypeElementCollection.cs
- xmlfixedPageInfo.cs
- NewExpression.cs
- ObjectStateEntry.cs
- TrustSection.cs
- NullableConverter.cs
- SafeCoTaskMem.cs
- BaseDataList.cs
- DataGridColumn.cs
- CompilerCollection.cs
- SimpleType.cs
- CodeDOMProvider.cs
- PrintDialog.cs
- SearchForVirtualItemEventArgs.cs
- AnyReturnReader.cs
- GeometryModel3D.cs
- QilFactory.cs
- ConfigurationCollectionAttribute.cs
- PeerNearMe.cs
- XmlSchemaAttributeGroup.cs
- sqlmetadatafactory.cs
- UserNamePasswordClientCredential.cs
- ParenExpr.cs
- DataGridrowEditEndingEventArgs.cs
- AlphabeticalEnumConverter.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- DocumentViewerBaseAutomationPeer.cs
- AssemblyAssociatedContentFileAttribute.cs
- SHA384Cng.cs
- Polyline.cs
- OptimizedTemplateContentHelper.cs
- XsdCachingReader.cs
- TableSectionStyle.cs
- PropertyToken.cs
- ClientUtils.cs
- X509Chain.cs
- StandardRuntimeEnumValidatorAttribute.cs
- WebDescriptionAttribute.cs
- ProcessManager.cs
- StringExpressionSet.cs
- SrgsGrammar.cs
- ExpressionEditorSheet.cs
- ToolStripItemEventArgs.cs
- DataObjectEventArgs.cs
- PreviewPrintController.cs
- updateconfighost.cs
- DebuggerAttributes.cs
- RewritingProcessor.cs
- DateTimeOffsetConverter.cs
- autovalidator.cs
- RoleExceptions.cs
- AuthenticationService.cs
- GeometryDrawing.cs
- PackagePart.cs
- loginstatus.cs
- ActiveXHost.cs
- CollectionType.cs
- DataRowChangeEvent.cs
- Application.cs
- CapabilitiesPattern.cs
- QueryConverter.cs
- Nodes.cs
- GrammarBuilderBase.cs
- TransformCryptoHandle.cs
- GenericIdentity.cs
- SoapException.cs
- DataGrid.cs
- DefaultHttpHandler.cs
- DataBoundControlParameterTarget.cs
- PrePostDescendentsWalker.cs
- ResourceDescriptionAttribute.cs
- ValidatorCompatibilityHelper.cs
- FtpCachePolicyElement.cs
- ReadWriteObjectLock.cs
- EmptyReadOnlyDictionaryInternal.cs
- ScrollChangedEventArgs.cs
- Base64Encoding.cs
- FixedHyperLink.cs
- GroupItemAutomationPeer.cs
- CloseSequence.cs
- ToolStripLocationCancelEventArgs.cs
- Polyline.cs
- PropertyOverridesTypeEditor.cs
- CodeVariableDeclarationStatement.cs
- DataControlField.cs
- Rotation3DAnimation.cs
- DocumentApplicationState.cs
- ConnectionPoolManager.cs
- WebBrowser.cs
- ChannelServices.cs
- ConnectionConsumerAttribute.cs
- ManagementClass.cs
- PathFigure.cs