Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Adapters / XhtmlAdapters / XhtmlBasicLabelAdapter.cs / 1305376 / XhtmlBasicLabelAdapter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Security.Permissions; using System.Web.Mobile; using System.Web.UI.MobileControls; using System.Web.UI.MobileControls.Adapters; #if COMPILING_FOR_SHIPPED_SOURCE namespace System.Web.UI.MobileControls.ShippedAdapterSource.XhtmlAdapters #else namespace System.Web.UI.MobileControls.Adapters.XhtmlAdapters #endif { ///[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 XhtmlLabelAdapter : XhtmlControlAdapter { /// public new Label Control { get { return base.Control as Label; } } /// public override void Render(XhtmlMobileTextWriter writer) { // ConditionalClearCachedEndTag() is for a device special case. ConditionalClearCachedEndTag(writer, Control.Text); ConditionalEnterStyle(writer, Style); ConditionalRenderOpeningSpanElement(writer); writer.WritePendingBreak(); writer.WriteEncodedText(Control.Text); writer.WriteLine (); // ConditionalSetPendingBreak should always be called *before* ConditionalExitStyle. // ConditionalExitStyle may render a block element and clear the pending break. ConditionalSetPendingBreak(writer); ConditionalRenderClosingSpanElement(writer); ConditionalExitStyle(writer, 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
- CqlLexerHelpers.cs
- NameSpaceEvent.cs
- DocumentSequenceHighlightLayer.cs
- MulticastOption.cs
- SecurityTokenReferenceStyle.cs
- BuildProvider.cs
- TileBrush.cs
- DataServiceStreamResponse.cs
- AutomationPeer.cs
- DesignerCatalogPartChrome.cs
- Glyph.cs
- QueryContext.cs
- CallContext.cs
- IdentityNotMappedException.cs
- Size3D.cs
- SafeEventLogWriteHandle.cs
- RowToParametersTransformer.cs
- Constants.cs
- LayoutTableCell.cs
- ImmutablePropertyDescriptorGridEntry.cs
- DigestTraceRecordHelper.cs
- PreProcessor.cs
- ImageCodecInfo.cs
- VisualTreeUtils.cs
- XslAst.cs
- OdbcParameterCollection.cs
- SubMenuStyleCollection.cs
- SwitchExpression.cs
- ACL.cs
- DbProviderFactoriesConfigurationHandler.cs
- SafeFileMappingHandle.cs
- AnnotationComponentManager.cs
- MulticastDelegate.cs
- TextPatternIdentifiers.cs
- ProxyHelper.cs
- FormParameter.cs
- CodeConditionStatement.cs
- ZipIOCentralDirectoryFileHeader.cs
- xml.cs
- FontSource.cs
- EndpointInfo.cs
- ShutDownListener.cs
- XmlSchemaSequence.cs
- IncrementalHitTester.cs
- XPathScanner.cs
- ApplicationException.cs
- WaitHandleCannotBeOpenedException.cs
- PropertyFilterAttribute.cs
- ConfigurationConverterBase.cs
- CustomServiceCredentials.cs
- CaseInsensitiveOrdinalStringComparer.cs
- TypeConstant.cs
- Helpers.cs
- Interlocked.cs
- XmlAttributeOverrides.cs
- ThemeableAttribute.cs
- InstanceLockLostException.cs
- DataPagerField.cs
- OutputCacheModule.cs
- SurrogateEncoder.cs
- DrawingContext.cs
- WebPartDescriptionCollection.cs
- Drawing.cs
- HtmlElementEventArgs.cs
- ServiceHttpModule.cs
- XXXInfos.cs
- TableCell.cs
- ToolStripPanelCell.cs
- TextRunCacheImp.cs
- BaseTemplateCodeDomTreeGenerator.cs
- RenderDataDrawingContext.cs
- TableRow.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- WmlLiteralTextAdapter.cs
- EventData.cs
- ClientTarget.cs
- PrimitiveCodeDomSerializer.cs
- ComboBox.cs
- BamlTreeNode.cs
- PartialList.cs
- ControlFilterExpression.cs
- RectangleGeometry.cs
- NotifyIcon.cs
- OuterGlowBitmapEffect.cs
- XmlPreloadedResolver.cs
- TrackingParameters.cs
- HtmlUtf8RawTextWriter.cs
- TemplateControlParser.cs
- IMembershipProvider.cs
- ObfuscateAssemblyAttribute.cs
- CompModSwitches.cs
- VoiceObjectToken.cs
- ImpersonationContext.cs
- ICollection.cs
- WebPartExportVerb.cs
- SystemResources.cs
- TextTrailingWordEllipsis.cs
- XmlMembersMapping.cs
- ViewBase.cs
- WsatConfiguration.cs