Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ // // 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
- CounterSample.cs
- PropertyConverter.cs
- MainMenu.cs
- PolyLineSegment.cs
- FormattedText.cs
- TabControl.cs
- FormsAuthenticationModule.cs
- Module.cs
- InputLanguageProfileNotifySink.cs
- DependencyPropertyHelper.cs
- CodeTryCatchFinallyStatement.cs
- FixedSOMPage.cs
- ReferenceConverter.cs
- TransformPattern.cs
- ApplicationTrust.cs
- ScaleTransform.cs
- Publisher.cs
- UIElement.cs
- StorageEntitySetMapping.cs
- GradientSpreadMethodValidation.cs
- DropSource.cs
- DateTimeOffset.cs
- PieceNameHelper.cs
- TemplateEditingService.cs
- FormsAuthentication.cs
- DesignerVerb.cs
- WebSysDescriptionAttribute.cs
- RightsManagementProvider.cs
- PointCollection.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- SessionParameter.cs
- XsltInput.cs
- XmlChildNodes.cs
- _LoggingObject.cs
- ContextMenuStrip.cs
- CachedCompositeFamily.cs
- _BufferOffsetSize.cs
- VariableQuery.cs
- PersonalizationStateInfo.cs
- HuffModule.cs
- dataobject.cs
- MemberDescriptor.cs
- GlyphShapingProperties.cs
- MsmqIntegrationInputChannel.cs
- __ComObject.cs
- AnnotationAuthorChangedEventArgs.cs
- DataRowChangeEvent.cs
- FileDataSourceCache.cs
- NetCodeGroup.cs
- MD5.cs
- ImageCodecInfoPrivate.cs
- FontDriver.cs
- ButtonDesigner.cs
- NativeCompoundFileAPIs.cs
- PopOutPanel.cs
- FormViewPageEventArgs.cs
- DataStorage.cs
- ToolStripSeparator.cs
- ObjectConverter.cs
- HttpFileCollection.cs
- RevocationPoint.cs
- PackagePartCollection.cs
- SafeLibraryHandle.cs
- Span.cs
- EncoderReplacementFallback.cs
- TypeDescriptor.cs
- RemotingSurrogateSelector.cs
- FormsAuthenticationCredentials.cs
- HttpListener.cs
- RepeaterCommandEventArgs.cs
- SendParametersContent.cs
- NotificationContext.cs
- BinaryConverter.cs
- SqlGatherProducedAliases.cs
- DataBinding.cs
- WebPartVerb.cs
- baseaxisquery.cs
- TreeViewCancelEvent.cs
- Imaging.cs
- Light.cs
- LinkLabel.cs
- AssemblyAttributesGoHere.cs
- SuppressMessageAttribute.cs
- ContextDataSource.cs
- FigureHelper.cs
- QuaternionKeyFrameCollection.cs
- BitmapEncoder.cs
- TimerExtension.cs
- CompilerScopeManager.cs
- EdmToObjectNamespaceMap.cs
- SettingsPropertyNotFoundException.cs
- MediaCommands.cs
- ElementHostPropertyMap.cs
- complextypematerializer.cs
- CodeMemberEvent.cs
- FixedStringLookup.cs
- StoryFragments.cs
- X509ThumbprintKeyIdentifierClause.cs
- QuinticEase.cs
- BinaryWriter.cs