Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Adapters / WmlLabelAdapter.cs / 1305376 / WmlLabelAdapter.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.Security.Permissions; #if COMPILING_FOR_SHIPPED_SOURCE namespace System.Web.UI.MobileControls.ShippedAdapterSource #else namespace System.Web.UI.MobileControls.Adapters #endif { /* * WmlLabelAdapter 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 WmlLabelAdapter : WmlControlAdapter { /// protected new TextControl Control { get { return (TextControl)base.Control; } } /// public override void Render(WmlMobileTextWriter writer) { writer.EnterStyle(Style); writer.RenderText(Control.Text, Control.BreakAfter); writer.ExitStyle(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.Security.Permissions; #if COMPILING_FOR_SHIPPED_SOURCE namespace System.Web.UI.MobileControls.ShippedAdapterSource #else namespace System.Web.UI.MobileControls.Adapters #endif { /* * WmlLabelAdapter 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 WmlLabelAdapter : WmlControlAdapter { /// protected new TextControl Control { get { return (TextControl)base.Control; } } /// public override void Render(WmlMobileTextWriter writer) { writer.EnterStyle(Style); writer.RenderText(Control.Text, Control.BreakAfter); writer.ExitStyle(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
- FixedSOMContainer.cs
- UriTemplateClientFormatter.cs
- Wizard.cs
- TypeValidationEventArgs.cs
- UriTemplateMatch.cs
- SoapInteropTypes.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- AsynchronousChannel.cs
- HttpCapabilitiesBase.cs
- CodeMemberMethod.cs
- CompilationLock.cs
- StateRuntime.cs
- Duration.cs
- XPathBinder.cs
- HttpPostProtocolReflector.cs
- SystemResourceHost.cs
- X509SubjectKeyIdentifierClause.cs
- AliasedSlot.cs
- AstTree.cs
- File.cs
- TransformConverter.cs
- PhysicalAddress.cs
- TripleDES.cs
- TrustDriver.cs
- RadioButtonRenderer.cs
- UnsafeNativeMethodsCLR.cs
- updateconfighost.cs
- Vector.cs
- LayoutDump.cs
- HtmlControl.cs
- DoubleUtil.cs
- HttpCacheVaryByContentEncodings.cs
- EnumBuilder.cs
- CodeNamespaceImportCollection.cs
- PreApplicationStartMethodAttribute.cs
- SByte.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- MetabaseReader.cs
- ListBindingHelper.cs
- Freezable.cs
- SByte.cs
- TypedColumnHandler.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- XmlWellformedWriterHelpers.cs
- NamespaceList.cs
- ComponentRenameEvent.cs
- XmlSchemaValidationException.cs
- AlternateViewCollection.cs
- RoleProviderPrincipal.cs
- DataControlCommands.cs
- ToolStripRenderEventArgs.cs
- SimpleWorkerRequest.cs
- HMACSHA256.cs
- DataColumnSelectionConverter.cs
- DataTableCollection.cs
- XmlSubtreeReader.cs
- UnsafeNativeMethods.cs
- CollectionBase.cs
- SelectionRangeConverter.cs
- UserMapPath.cs
- CapabilitiesState.cs
- ScriptModule.cs
- MarkupCompilePass2.cs
- AccessDataSource.cs
- ReliableMessagingVersionConverter.cs
- DbReferenceCollection.cs
- GrammarBuilderBase.cs
- PocoEntityKeyStrategy.cs
- MDIControlStrip.cs
- MediaContextNotificationWindow.cs
- WindowsAuthenticationModule.cs
- PasswordRecovery.cs
- TextDecorationUnitValidation.cs
- Unit.cs
- ProtocolsConfigurationHandler.cs
- AsyncOperationManager.cs
- XmlEncodedRawTextWriter.cs
- NonClientArea.cs
- DiscoveryDocumentLinksPattern.cs
- QuaternionValueSerializer.cs
- ClientConfigurationHost.cs
- CharKeyFrameCollection.cs
- QilName.cs
- documentsequencetextcontainer.cs
- ReversePositionQuery.cs
- WsdlWriter.cs
- LayoutEditorPart.cs
- WebPartMenuStyle.cs
- Light.cs
- SQLSingle.cs
- XmlUrlResolver.cs
- Executor.cs
- StorageModelBuildProvider.cs
- ProtocolsConfiguration.cs
- FormatPage.cs
- TabPanel.cs
- ToolStripSplitStackLayout.cs
- CoreSwitches.cs
- smtppermission.cs
- ServiceEndpointElementCollection.cs