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
- Span.cs
- PeerCustomResolverSettings.cs
- JsonServiceDocumentSerializer.cs
- StandardToolWindows.cs
- StringSource.cs
- SqlCacheDependencyDatabase.cs
- VersionedStream.cs
- CacheModeConverter.cs
- BindUriHelper.cs
- Menu.cs
- ProviderCommandInfoUtils.cs
- FixedHyperLink.cs
- TaiwanCalendar.cs
- SimpleColumnProvider.cs
- TargetConverter.cs
- TraceData.cs
- BitmapEffectrendercontext.cs
- UserPersonalizationStateInfo.cs
- NumberEdit.cs
- XpsInterleavingPolicy.cs
- SqlTypeConverter.cs
- ArrayExtension.cs
- DockPattern.cs
- FixedTextPointer.cs
- SafeHandles.cs
- MetadataArtifactLoaderResource.cs
- ListView.cs
- SHA256.cs
- CharStorage.cs
- BoundPropertyEntry.cs
- ViewCellSlot.cs
- DataServiceKeyAttribute.cs
- SafeFileHandle.cs
- NamespaceInfo.cs
- ContentDefinition.cs
- activationcontext.cs
- FormViewModeEventArgs.cs
- ObjectHandle.cs
- Mapping.cs
- Utils.cs
- ComboBox.cs
- ProvidePropertyAttribute.cs
- DataGridPreparingCellForEditEventArgs.cs
- MulticastDelegate.cs
- MessageQueueAccessControlEntry.cs
- TextAdaptor.cs
- HttpTransportManager.cs
- EntityDataSourceContextDisposingEventArgs.cs
- SingleKeyFrameCollection.cs
- FontStretchConverter.cs
- SemanticResultKey.cs
- SecurityException.cs
- DateTimeOffset.cs
- RootAction.cs
- TextServicesHost.cs
- WebPartActionVerb.cs
- TextDecorationCollection.cs
- BatchStream.cs
- PageThemeParser.cs
- GroupBoxRenderer.cs
- RewritingValidator.cs
- InvalidOperationException.cs
- CodeDomConfigurationHandler.cs
- ColumnProvider.cs
- BindingMemberInfo.cs
- SecUtil.cs
- HtmlInputControl.cs
- TrackingRecord.cs
- GuidelineCollection.cs
- StackOverflowException.cs
- Int32Storage.cs
- MenuStrip.cs
- MultipartContentParser.cs
- Lasso.cs
- Speller.cs
- DayRenderEvent.cs
- DataGridViewCheckBoxCell.cs
- ApplyTemplatesAction.cs
- ProviderSettings.cs
- CategoryNameCollection.cs
- ObjectDataSourceView.cs
- ToolStripAdornerWindowService.cs
- ObjectListSelectEventArgs.cs
- PeerPresenceInfo.cs
- ParameterCollection.cs
- WithStatement.cs
- MSG.cs
- Group.cs
- FileUtil.cs
- CreateUserWizardDesigner.cs
- RelatedView.cs
- ListViewDeleteEventArgs.cs
- ContractBase.cs
- WebPartAuthorizationEventArgs.cs
- GC.cs
- AVElementHelper.cs
- FixedDSBuilder.cs
- ButtonField.cs
- IHttpResponseInternal.cs
- GridSplitterAutomationPeer.cs