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
- ContainerParagraph.cs
- GridViewRowEventArgs.cs
- SynchronizedDispatch.cs
- ResourceReader.cs
- ObjectListCommandEventArgs.cs
- RegistrySecurity.cs
- InvalidAsynchronousStateException.cs
- UserMapPath.cs
- KeysConverter.cs
- DesignSurfaceCollection.cs
- Trace.cs
- InvalidPrinterException.cs
- Light.cs
- MarkupWriter.cs
- IRCollection.cs
- HttpUnhandledOperationInvoker.cs
- XamlClipboardData.cs
- UnaryNode.cs
- SamlAssertion.cs
- DetailsViewUpdateEventArgs.cs
- HandleCollector.cs
- QueueAccessMode.cs
- HtmlInputReset.cs
- TextOptionsInternal.cs
- EdmToObjectNamespaceMap.cs
- InputProviderSite.cs
- WebSysDescriptionAttribute.cs
- SqlXmlStorage.cs
- DiscoveryClientChannelBase.cs
- SharedUtils.cs
- CodeArrayIndexerExpression.cs
- ValueExpressions.cs
- ContractUtils.cs
- TypeForwardedFromAttribute.cs
- XmlDownloadManager.cs
- FrameworkTemplate.cs
- PointLightBase.cs
- PointCollection.cs
- FileLogRecordHeader.cs
- HttpHeaderCollection.cs
- DecodeHelper.cs
- HexParser.cs
- AsymmetricSecurityBindingElement.cs
- BackStopAuthenticationModule.cs
- ContractHandle.cs
- DataRowView.cs
- RelationshipEndMember.cs
- DataBindingExpressionBuilder.cs
- XmlArrayAttribute.cs
- ClockGroup.cs
- EventLogQuery.cs
- MetadataHelper.cs
- _BufferOffsetSize.cs
- ComponentResourceManager.cs
- CachingHintValidation.cs
- ManualResetEventSlim.cs
- NotFiniteNumberException.cs
- LocalizedNameDescriptionPair.cs
- DrawingContextWalker.cs
- HashAlgorithm.cs
- PageThemeParser.cs
- HtmlControlPersistable.cs
- ControlCollection.cs
- WindowsContainer.cs
- JoinQueryOperator.cs
- TabletDevice.cs
- SessionStateItemCollection.cs
- ModelUIElement3D.cs
- Gdiplus.cs
- TypeLibraryHelper.cs
- Quaternion.cs
- SpellerStatusTable.cs
- Root.cs
- Visual3D.cs
- EntityViewGenerationAttribute.cs
- FontWeight.cs
- TypeSystem.cs
- WebServiceHost.cs
- SqlProviderUtilities.cs
- Thickness.cs
- PropertyChangingEventArgs.cs
- ServerReliableChannelBinder.cs
- CharKeyFrameCollection.cs
- LogExtent.cs
- XmlSchemaInclude.cs
- ConnectionConsumerAttribute.cs
- EditorPart.cs
- precedingsibling.cs
- XamlStream.cs
- SimpleHandlerBuildProvider.cs
- SmiEventSink_DeferedProcessing.cs
- TextTreeUndo.cs
- WebServiceAttribute.cs
- EpmContentSerializer.cs
- DbFunctionCommandTree.cs
- VisualStyleRenderer.cs
- GenericTextProperties.cs
- ExpressionBuilder.cs
- PixelFormatConverter.cs
- DirectionalLight.cs