Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Adapters / HtmlLinkAdapter.cs / 1305376 / HtmlLinkAdapter.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.Drawing; using System.Security.Permissions; #if COMPILING_FOR_SHIPPED_SOURCE namespace System.Web.UI.MobileControls.ShippedAdapterSource #else namespace System.Web.UI.MobileControls.Adapters #endif { /* * HtmlLinkAdapter 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 HtmlLinkAdapter : HtmlControlAdapter { /// protected new Link Control { get { return (Link)base.Control; } } /// public override void Render(HtmlMobileTextWriter writer) { writer.EnterStyle(Style); String navigateUrl = Control.NavigateUrl; RenderBeginLink(writer, navigateUrl); writer.WriteText(String.IsNullOrEmpty(Control.Text) ? navigateUrl : Control.Text, true); RenderEndLink(writer); writer.ExitStyle(Style, Control.BreakAfter); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // 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.Drawing; using System.Security.Permissions; #if COMPILING_FOR_SHIPPED_SOURCE namespace System.Web.UI.MobileControls.ShippedAdapterSource #else namespace System.Web.UI.MobileControls.Adapters #endif { /* * HtmlLinkAdapter 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 HtmlLinkAdapter : HtmlControlAdapter { /// protected new Link Control { get { return (Link)base.Control; } } /// public override void Render(HtmlMobileTextWriter writer) { writer.EnterStyle(Style); String navigateUrl = Control.NavigateUrl; RenderBeginLink(writer, navigateUrl); writer.WriteText(String.IsNullOrEmpty(Control.Text) ? navigateUrl : Control.Text, true); RenderEndLink(writer); writer.ExitStyle(Style, Control.BreakAfter); } } } // 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
- Util.cs
- StateRuntime.cs
- ProtocolsSection.cs
- Parser.cs
- MenuScrollingVisibilityConverter.cs
- WindowsGraphics.cs
- XamlLoadErrorInfo.cs
- DataPagerCommandEventArgs.cs
- FontEmbeddingManager.cs
- RuleSettingsCollection.cs
- BindingFormattingDialog.cs
- SecurityAccessDeniedException.cs
- FontDriver.cs
- OperationPickerDialog.cs
- NegatedConstant.cs
- ProcessHostServerConfig.cs
- CodeTryCatchFinallyStatement.cs
- HtmlImage.cs
- TreeView.cs
- XmlArrayAttribute.cs
- ParamArrayAttribute.cs
- ExecutionPropertyManager.cs
- RelationshipEndCollection.cs
- UrlMappingCollection.cs
- COM2IPerPropertyBrowsingHandler.cs
- StickyNoteContentControl.cs
- ReferenceTypeElement.cs
- XmlSchemaDatatype.cs
- ButtonRenderer.cs
- PathGeometry.cs
- MethodToken.cs
- ProfileService.cs
- ISessionStateStore.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- WindowsListViewScroll.cs
- SslStream.cs
- PropertyDescriptor.cs
- FontSizeConverter.cs
- XmlCharType.cs
- CachedTypeface.cs
- PersonalizablePropertyEntry.cs
- PackageDigitalSignatureManager.cs
- relpropertyhelper.cs
- DriveNotFoundException.cs
- SerializationHelper.cs
- StylusCaptureWithinProperty.cs
- ImageField.cs
- BrowserDefinitionCollection.cs
- NotifyParentPropertyAttribute.cs
- DataProtection.cs
- HijriCalendar.cs
- ThreadExceptionDialog.cs
- ExpressionLink.cs
- NetPeerTcpBindingElement.cs
- ConfigXmlElement.cs
- PanelDesigner.cs
- TextEndOfLine.cs
- EventSourceCreationData.cs
- VirtualizingStackPanel.cs
- FormViewUpdateEventArgs.cs
- ElementHost.cs
- MaskedTextBox.cs
- CatalogPartCollection.cs
- SpeechAudioFormatInfo.cs
- ReferentialConstraintRoleElement.cs
- StylusPointCollection.cs
- DesignerActionUIService.cs
- FileDialogCustomPlace.cs
- DependencyObjectPropertyDescriptor.cs
- NamespaceQuery.cs
- DictionaryChange.cs
- GPPOINTF.cs
- SafeMarshalContext.cs
- LocatorManager.cs
- BuildDependencySet.cs
- UnsignedPublishLicense.cs
- SafeNativeMethodsCLR.cs
- VectorCollection.cs
- DataGridViewRowPrePaintEventArgs.cs
- UriWriter.cs
- WebControlsSection.cs
- DependencyPropertyValueSerializer.cs
- WindowsContainer.cs
- SafeMILHandleMemoryPressure.cs
- Matrix.cs
- WorkflowApplicationAbortedException.cs
- SafeMemoryMappedFileHandle.cs
- FormCollection.cs
- AddInController.cs
- GetPageNumberCompletedEventArgs.cs
- GC.cs
- CompressEmulationStream.cs
- DataObjectMethodAttribute.cs
- DataGrid.cs
- SecurityTokenReferenceStyle.cs
- XmlSchemaChoice.cs
- EntityCommandExecutionException.cs
- Bidi.cs
- BindingContext.cs
- RangeBaseAutomationPeer.cs