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
- WindowHideOrCloseTracker.cs
- TextSyndicationContentKindHelper.cs
- Int64Converter.cs
- BezierSegment.cs
- CodeChecksumPragma.cs
- DefaultHttpHandler.cs
- GraphicsState.cs
- CellPartitioner.cs
- remotingproxy.cs
- EDesignUtil.cs
- HttpModuleCollection.cs
- HttpCookieCollection.cs
- ItemsPanelTemplate.cs
- Base64Stream.cs
- ImportCatalogPart.cs
- FloaterBaseParaClient.cs
- RectangleGeometry.cs
- PriorityItem.cs
- EntityDataSourceDataSelection.cs
- SettingsPropertyIsReadOnlyException.cs
- QuerySelectOp.cs
- LinkedResourceCollection.cs
- SelectorItemAutomationPeer.cs
- DtdParser.cs
- HighlightComponent.cs
- XmlQueryCardinality.cs
- ConvertBinder.cs
- DecimalAnimation.cs
- Rule.cs
- LicFileLicenseProvider.cs
- AssemblyAssociatedContentFileAttribute.cs
- WebPartDescription.cs
- CodeMethodReturnStatement.cs
- SchemaContext.cs
- SqlCommand.cs
- VirtualPathUtility.cs
- TimeZoneInfo.cs
- ValidationResult.cs
- NegotiationTokenProvider.cs
- TextInfo.cs
- ScriptRef.cs
- MemberMaps.cs
- QilInvokeLateBound.cs
- MonthCalendarDesigner.cs
- Executor.cs
- ComponentDispatcher.cs
- SimplePropertyEntry.cs
- xml.cs
- FaultHandlingFilter.cs
- FrameworkTemplate.cs
- QualifiedCellIdBoolean.cs
- ReadOnlyCollectionBase.cs
- Renderer.cs
- CodeNamespaceImport.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- AxHost.cs
- BufferedWebEventProvider.cs
- PropertyEmitter.cs
- XmlLanguageConverter.cs
- DelegatedStream.cs
- TextCharacters.cs
- DWriteFactory.cs
- streamingZipPartStream.cs
- CompilationLock.cs
- EntityViewGenerator.cs
- RtfToXamlReader.cs
- RegexMatch.cs
- XslCompiledTransform.cs
- QueryResultOp.cs
- PersonalizationProviderCollection.cs
- IdnElement.cs
- HandleCollector.cs
- TableLayoutPanelCellPosition.cs
- DeclaredTypeElementCollection.cs
- WebPartConnectVerb.cs
- TreeNodeStyle.cs
- WeakReference.cs
- TypeInfo.cs
- NonBatchDirectoryCompiler.cs
- ThousandthOfEmRealPoints.cs
- PipelineModuleStepContainer.cs
- HandlerFactoryCache.cs
- RichTextBoxAutomationPeer.cs
- MSAAWinEventWrap.cs
- QilStrConcat.cs
- AnnotationResource.cs
- ProxyDataContractResolver.cs
- ProxyHwnd.cs
- SR.cs
- Inflater.cs
- Pts.cs
- XmlQualifiedNameTest.cs
- ClickablePoint.cs
- List.cs
- SubtreeProcessor.cs
- XmlSignatureProperties.cs
- RecognizerStateChangedEventArgs.cs
- ValueExpressions.cs
- XXXOnTypeBuilderInstantiation.cs
- CapabilitiesRule.cs