Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Adapters / XhtmlAdapters / XhtmlBasicLinkAdapter.cs / 1305376 / XhtmlBasicLinkAdapter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; 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 XhtmlLinkAdapter : XhtmlControlAdapter { /// protected new Link Control { get { return base.Control as Link; } } /// public override void Render(XhtmlMobileTextWriter writer) { ConditionalClearPendingBreak(writer); ConditionalEnterStyle(writer, Style); String cssClass = GetCustomAttributeValue(XhtmlConstants.CssClassCustomAttribute); String accessKey = GetCustomAttributeValue(XhtmlConstants.AccessKeyCustomAttribute); RenderBeginLink(writer, Control.NavigateUrl, accessKey, Style, cssClass); String controlText = Control.Text; writer.WriteEncodedText(controlText == null || controlText.Length == 0 ? Control.NavigateUrl : controlText); RenderEndLink(writer); // ConditionalSetPendingBreak should always be called *before* ConditionalExitStyle. // ConditionalExitStyle may render a block element and clear the pending break. ConditionalSetPendingBreakAfterInline(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
- PrtTicket_Public_Simple.cs
- ItemsPanelTemplate.cs
- PointLight.cs
- WindowsRebar.cs
- PageMediaSize.cs
- HttpModuleActionCollection.cs
- ContractHandle.cs
- ItemChangedEventArgs.cs
- PerfProviderCollection.cs
- PenContext.cs
- SocketPermission.cs
- documentation.cs
- UpdateManifestForBrowserApplication.cs
- LinkTarget.cs
- ValueQuery.cs
- TrustManagerMoreInformation.cs
- CharEnumerator.cs
- SharedPersonalizationStateInfo.cs
- TdsParserHelperClasses.cs
- GPRECTF.cs
- indexingfiltermarshaler.cs
- TextBox.cs
- Transform3DGroup.cs
- TypeForwardedToAttribute.cs
- MsmqIntegrationInputMessage.cs
- CacheChildrenQuery.cs
- FormsAuthenticationModule.cs
- PropertyGridEditorPart.cs
- SafeTimerHandle.cs
- WebHostedComPlusServiceHost.cs
- ErrorHandler.cs
- DataBindEngine.cs
- XmlSerializerFactory.cs
- StrongNameKeyPair.cs
- BrowserInteropHelper.cs
- wgx_commands.cs
- RowSpanVector.cs
- QilNode.cs
- RuntimeHelpers.cs
- hresults.cs
- TreeNodeStyleCollection.cs
- CodePageEncoding.cs
- Classification.cs
- listitem.cs
- HttpCachePolicy.cs
- SqlCachedBuffer.cs
- BitmapData.cs
- Style.cs
- ConvertTextFrag.cs
- DropShadowEffect.cs
- TcpSocketManager.cs
- Decorator.cs
- SHA256Cng.cs
- NamespaceList.cs
- FileSecurity.cs
- DesignerOptionService.cs
- OverlappedAsyncResult.cs
- ToolStripLabel.cs
- BitmapMetadataBlob.cs
- PeerNameRegistration.cs
- EntityTypeBase.cs
- ExpressionBuilder.cs
- GiveFeedbackEventArgs.cs
- PermissionSetEnumerator.cs
- XmlSchemaType.cs
- FtpCachePolicyElement.cs
- ListMarkerSourceInfo.cs
- XPathNodePointer.cs
- SafeHandles.cs
- SubclassTypeValidatorAttribute.cs
- NCryptSafeHandles.cs
- MessagePropertyDescriptionCollection.cs
- StateWorkerRequest.cs
- SyndicationSerializer.cs
- BaseCodeDomTreeGenerator.cs
- DataMemberFieldEditor.cs
- ProxySimple.cs
- MessageSecurityOverMsmq.cs
- QilTernary.cs
- XmlAnyAttributeAttribute.cs
- Visual3D.cs
- Pens.cs
- DocumentCollection.cs
- Point.cs
- ReadOnlyAttribute.cs
- BinaryReader.cs
- entityreference_tresulttype.cs
- PromptStyle.cs
- ConnectionProviderAttribute.cs
- WebBrowserDocumentCompletedEventHandler.cs
- HeaderedContentControl.cs
- Control.cs
- AttributeData.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ImageAnimator.cs
- ArgumentsParser.cs
- JapaneseCalendar.cs
- ResourceAssociationType.cs
- RawUIStateInputReport.cs
- GeometryGroup.cs