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
- DataGridViewElement.cs
- PrintController.cs
- DotExpr.cs
- _NetworkingPerfCounters.cs
- ZoneButton.cs
- ListContractAdapter.cs
- Region.cs
- LostFocusEventManager.cs
- SessionEndingEventArgs.cs
- ColorEditor.cs
- ResourceAttributes.cs
- XamlSerializationHelper.cs
- DataTable.cs
- PixelFormats.cs
- XmlValidatingReader.cs
- UserPersonalizationStateInfo.cs
- XmlnsPrefixAttribute.cs
- ComponentManagerBroker.cs
- GroupDescription.cs
- LogicalExpr.cs
- BlobPersonalizationState.cs
- DashStyle.cs
- UpDownBase.cs
- TypedServiceChannelBuilder.cs
- XamlParser.cs
- EmptyReadOnlyDictionaryInternal.cs
- XpsViewerException.cs
- NegationPusher.cs
- SamlAuthorityBinding.cs
- HttpWriter.cs
- OutputCacheSettingsSection.cs
- VisualState.cs
- ReferencedCollectionType.cs
- Separator.cs
- CheckPair.cs
- Cursors.cs
- Viewport3DVisual.cs
- ConfigurationElementProperty.cs
- ConfigurationElement.cs
- TypedElement.cs
- XmlQueryRuntime.cs
- ImageFormatConverter.cs
- ResourceExpressionBuilder.cs
- ProcessMessagesAsyncResult.cs
- PropertyChangedEventManager.cs
- NameTable.cs
- OleDbCommandBuilder.cs
- GridViewEditEventArgs.cs
- SBCSCodePageEncoding.cs
- UnsafeNativeMethodsTablet.cs
- DesignerCapabilities.cs
- XmlDomTextWriter.cs
- _SslStream.cs
- MatrixValueSerializer.cs
- XamlStream.cs
- SID.cs
- QueryOpeningEnumerator.cs
- TextAutomationPeer.cs
- Tracer.cs
- ExpandCollapseProviderWrapper.cs
- IChannel.cs
- SelectionRangeConverter.cs
- GridViewPageEventArgs.cs
- MessagingDescriptionAttribute.cs
- SettingsPropertyIsReadOnlyException.cs
- ProcessHost.cs
- DesignerAutoFormatStyle.cs
- SeparatorAutomationPeer.cs
- Hash.cs
- DefaultObjectSerializer.cs
- SafeArrayRankMismatchException.cs
- CollectionContainer.cs
- TabletDevice.cs
- MulticastDelegate.cs
- GB18030Encoding.cs
- BufferedGraphics.cs
- SerializationAttributes.cs
- SamlEvidence.cs
- StatusBar.cs
- X509UI.cs
- NameTable.cs
- ObjectPropertyMapping.cs
- SHA384.cs
- ImageConverter.cs
- DocumentViewerConstants.cs
- DtdParser.cs
- Merger.cs
- XmlRawWriterWrapper.cs
- DynamicPropertyHolder.cs
- ListChunk.cs
- HtmlControlPersistable.cs
- DataControlFieldHeaderCell.cs
- MatrixKeyFrameCollection.cs
- EntryPointNotFoundException.cs
- VariableAction.cs
- _UriTypeConverter.cs
- DictionarySectionHandler.cs
- UserNamePasswordValidationMode.cs
- PipeStream.cs
- AnimatedTypeHelpers.cs