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
- FixedSOMTableRow.cs
- HighlightVisual.cs
- MatrixCamera.cs
- DecoderNLS.cs
- AppendHelper.cs
- BehaviorEditorPart.cs
- AutomationEvent.cs
- DataBoundControl.cs
- UnauthorizedWebPart.cs
- SqlIdentifier.cs
- RijndaelManagedTransform.cs
- CroppedBitmap.cs
- Formatter.cs
- GeometryModel3D.cs
- CharAnimationUsingKeyFrames.cs
- ProgressBarRenderer.cs
- BitmapEffectDrawingContent.cs
- LoadedOrUnloadedOperation.cs
- TextEditorLists.cs
- SubMenuStyle.cs
- ReadOnlyState.cs
- FilterException.cs
- SecurityTokenReferenceStyle.cs
- LinqDataSourceContextData.cs
- UIHelper.cs
- AssemblyCache.cs
- ClientTarget.cs
- SecurityContext.cs
- WebPartMenuStyle.cs
- UIElementHelper.cs
- RequestSecurityTokenForRemoteTokenFactory.cs
- CancelEventArgs.cs
- ListControlBoundActionList.cs
- VoiceSynthesis.cs
- ChangeTracker.cs
- SmtpMail.cs
- CommandPlan.cs
- MetadataCache.cs
- ObjectHandle.cs
- x509store.cs
- GC.cs
- Propagator.ExtentPlaceholderCreator.cs
- EdmProperty.cs
- StandardTransformFactory.cs
- wgx_exports.cs
- GraphicsPathIterator.cs
- MethodBuilder.cs
- XmlAttributeHolder.cs
- InvokeGenerator.cs
- WSDualHttpBindingElement.cs
- HostingPreferredMapPath.cs
- DocumentPage.cs
- FixedSOMPageConstructor.cs
- HashMembershipCondition.cs
- XhtmlTextWriter.cs
- _NegoStream.cs
- TypeTypeConverter.cs
- CommandDesigner.cs
- Matrix3DStack.cs
- RetrieveVirtualItemEventArgs.cs
- ScriptResourceInfo.cs
- NCryptSafeHandles.cs
- GridViewDeleteEventArgs.cs
- ObjectStateManager.cs
- MetadataWorkspace.cs
- StylusPointDescription.cs
- WebPartExportVerb.cs
- basevalidator.cs
- ConfigurationManager.cs
- FlowLayoutPanel.cs
- Decorator.cs
- SmiRequestExecutor.cs
- AssemblyCache.cs
- Brushes.cs
- FixedMaxHeap.cs
- SQLInt32.cs
- ComplexPropertyEntry.cs
- NetNamedPipeBinding.cs
- HMACSHA1.cs
- OracleSqlParser.cs
- SoapSchemaExporter.cs
- Stream.cs
- DrawingServices.cs
- DynamicDataExtensions.cs
- DocumentGridPage.cs
- CharacterMetrics.cs
- EntityDesignerBuildProvider.cs
- AssemblySettingAttributes.cs
- XsdDataContractImporter.cs
- GenericPrincipal.cs
- OLEDB_Enum.cs
- Renderer.cs
- DataColumnMapping.cs
- EdmProperty.cs
- CryptoHandle.cs
- WinEventHandler.cs
- StructuredTypeInfo.cs
- ConnectionsZone.cs
- Condition.cs
- SspiNegotiationTokenProvider.cs