Code:
/ 4.0 / 4.0 / 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.
//------------------------------------------------------------------------------
//
// 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
- RectangleConverter.cs
- SqlCachedBuffer.cs
- BackgroundWorker.cs
- UpdateTranslator.cs
- DescendantBaseQuery.cs
- XmlAtomicValue.cs
- XmlSchemaSimpleTypeUnion.cs
- DayRenderEvent.cs
- MatrixConverter.cs
- SessionSwitchEventArgs.cs
- ThicknessConverter.cs
- SharedUtils.cs
- SubtreeProcessor.cs
- TraceUtility.cs
- FormsAuthenticationCredentials.cs
- SqlDependencyUtils.cs
- ExpressionBuilderContext.cs
- BindableTemplateBuilder.cs
- SHA512Managed.cs
- graph.cs
- AppDomain.cs
- ToolboxItem.cs
- BinarySerializer.cs
- AuthenticationService.cs
- LoginUtil.cs
- EditModeSwitchButton.cs
- MethodBuilder.cs
- TimelineGroup.cs
- Encoding.cs
- NavigationService.cs
- ImageCollectionCodeDomSerializer.cs
- StaticFileHandler.cs
- ContainerUIElement3D.cs
- MonitoringDescriptionAttribute.cs
- DataGridViewComboBoxEditingControl.cs
- ApplicationDirectoryMembershipCondition.cs
- VectorValueSerializer.cs
- InboundActivityHelper.cs
- Quad.cs
- StreamGeometryContext.cs
- EntityClassGenerator.cs
- TextChange.cs
- PackWebRequest.cs
- CatalogPartCollection.cs
- Property.cs
- oledbconnectionstring.cs
- ProgressBar.cs
- CompositeScriptReference.cs
- AssemblySettingAttributes.cs
- DesignerTextBoxAdapter.cs
- AttachmentCollection.cs
- SoapCodeExporter.cs
- DataRelationPropertyDescriptor.cs
- TextCompositionEventArgs.cs
- VirtualizingStackPanel.cs
- WindowsToolbar.cs
- CodeDOMProvider.cs
- RegistrationServices.cs
- SamlAuthorizationDecisionStatement.cs
- DataServiceEntityAttribute.cs
- SessionStateModule.cs
- HitTestFilterBehavior.cs
- Variant.cs
- DirtyTextRange.cs
- XmlNullResolver.cs
- DateTimeConverter2.cs
- AddInActivator.cs
- CodeMethodInvokeExpression.cs
- SuppressMessageAttribute.cs
- ServiceContractListItem.cs
- PropertyRecord.cs
- SafeArrayRankMismatchException.cs
- WindowsListViewScroll.cs
- DataServiceKeyAttribute.cs
- _Connection.cs
- DecoratedNameAttribute.cs
- HttpGetServerProtocol.cs
- ContainerParaClient.cs
- StringDictionaryWithComparer.cs
- WebPartVerbsEventArgs.cs
- ToolStripDropDownItem.cs
- ListItemParagraph.cs
- ProviderUtil.cs
- SortDescriptionCollection.cs
- _StreamFramer.cs
- CharacterMetricsDictionary.cs
- CoreChannel.cs
- EventListener.cs
- CancelEventArgs.cs
- PointUtil.cs
- MenuItem.cs
- MapPathBasedVirtualPathProvider.cs
- LogoValidationException.cs
- FlowDocumentPage.cs
- StateDesigner.cs
- XmlEnumAttribute.cs
- ServicePointManager.cs
- DocumentScope.cs
- PathFigure.cs
- SqlDataSourceConnectionPanel.cs