Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Adapters / WmlLinkAdapter.cs / 1305376 / WmlLinkAdapter.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 { /* * WmlLinkAdapter 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 WmlLinkAdapter : WmlControlAdapter { /// protected new Link Control { get { return (Link)base.Control; } } /// public override void Render(WmlMobileTextWriter writer) { String navigateUrl = Control.NavigateUrl; String text = (String.IsNullOrEmpty(Control.Text)) ? navigateUrl : Control.Text; bool breakAfter = Control.BreakAfter && !Device.RendersBreaksAfterWmlAnchor; String softkeyLabel = Control.SoftkeyLabel; bool implicitSoftkeyLabel = false; if (softkeyLabel.Length == 0) { implicitSoftkeyLabel = true; softkeyLabel = Control.Text; } writer.EnterStyle(Style); RenderLink(writer, navigateUrl, softkeyLabel, implicitSoftkeyLabel, true, text, 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
- UnorderedHashRepartitionStream.cs
- ServerIdentity.cs
- HtmlButton.cs
- ObjectQuery.cs
- CellTreeNode.cs
- StyleHelper.cs
- FrameworkContentElement.cs
- IntSecurity.cs
- nulltextcontainer.cs
- BoundField.cs
- ClientTargetSection.cs
- ConfigurationErrorsException.cs
- BrowserDefinitionCollection.cs
- BitmapImage.cs
- ImageUrlEditor.cs
- FrameworkTemplate.cs
- HttpCacheVaryByContentEncodings.cs
- SQLInt64Storage.cs
- DataRow.cs
- ReferenceEqualityComparer.cs
- XmlAttributeAttribute.cs
- GeneralTransform3DGroup.cs
- CrossAppDomainChannel.cs
- SourceFilter.cs
- UpWmlPageAdapter.cs
- WindowsFont.cs
- NodeLabelEditEvent.cs
- DataGridViewRowStateChangedEventArgs.cs
- SqlNode.cs
- ReadContentAsBinaryHelper.cs
- SqlDataSource.cs
- PostBackOptions.cs
- PrinterSettings.cs
- ConfigXmlCDataSection.cs
- ElementHostAutomationPeer.cs
- EventMappingSettingsCollection.cs
- CoTaskMemUnicodeSafeHandle.cs
- GroupedContextMenuStrip.cs
- Listener.cs
- QilTargetType.cs
- UrlPropertyAttribute.cs
- GuidelineSet.cs
- unsafenativemethodstextservices.cs
- TemplateInstanceAttribute.cs
- ContainsSearchOperator.cs
- XmlSiteMapProvider.cs
- DoubleKeyFrameCollection.cs
- UInt32Converter.cs
- DescendentsWalker.cs
- DataGridTableCollection.cs
- RegexCode.cs
- TokenFactoryFactory.cs
- ReachFixedDocumentSerializerAsync.cs
- shaperfactoryquerycacheentry.cs
- EntityTransaction.cs
- ECDiffieHellman.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- ElementsClipboardData.cs
- ListChangedEventArgs.cs
- _AcceptOverlappedAsyncResult.cs
- MemberPathMap.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- InternalPolicyElement.cs
- Rect3DValueSerializer.cs
- OdbcDataAdapter.cs
- SerialReceived.cs
- EntityCollection.cs
- COM2PropertyPageUITypeConverter.cs
- _OSSOCK.cs
- BaseTreeIterator.cs
- MatrixCamera.cs
- Zone.cs
- HttpServerVarsCollection.cs
- METAHEADER.cs
- MessageSecurityException.cs
- TextSelection.cs
- DataGridViewAccessibleObject.cs
- DefaultPrintController.cs
- CodeSubDirectoriesCollection.cs
- ColumnTypeConverter.cs
- ValueChangedEventManager.cs
- StructuredTypeInfo.cs
- Translator.cs
- HotSpot.cs
- AdRotator.cs
- SqlWebEventProvider.cs
- EnlistmentTraceIdentifier.cs
- COM2PictureConverter.cs
- ADConnectionHelper.cs
- RIPEMD160.cs
- CapabilitiesRule.cs
- RegexRunnerFactory.cs
- ChannelTerminatedException.cs
- CorruptingExceptionCommon.cs
- LocationUpdates.cs
- HScrollProperties.cs
- XmlAttributes.cs
- XmlElementElementCollection.cs
- SqlCachedBuffer.cs
- LinqDataSourceStatusEventArgs.cs