Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeNativeMethods.cs
- PackWebRequest.cs
- FontUnit.cs
- XamlPoint3DCollectionSerializer.cs
- CustomValidator.cs
- XmlILTrace.cs
- XmlSchemaIdentityConstraint.cs
- Clause.cs
- EncoderBestFitFallback.cs
- DataGridViewComboBoxCell.cs
- AttachedPropertyBrowsableAttribute.cs
- PseudoWebRequest.cs
- DragEventArgs.cs
- PlaceHolder.cs
- Splitter.cs
- BitmapEffectRenderDataResource.cs
- BooleanAnimationUsingKeyFrames.cs
- SBCSCodePageEncoding.cs
- NotifyIcon.cs
- ApplicationInfo.cs
- GenericIdentity.cs
- ButtonField.cs
- Table.cs
- MessageDecoder.cs
- VerticalAlignConverter.cs
- LassoHelper.cs
- OAVariantLib.cs
- FontNamesConverter.cs
- CommandID.cs
- ContainerUtilities.cs
- HtmlLink.cs
- PublishLicense.cs
- OdbcReferenceCollection.cs
- RuntimeArgumentHandle.cs
- DBSchemaTable.cs
- RuntimeArgumentHandle.cs
- ArglessEventHandlerProxy.cs
- MediaPlayerState.cs
- BamlLocalizableResource.cs
- HuffmanTree.cs
- Literal.cs
- ExceptionDetail.cs
- PenThread.cs
- ValuePatternIdentifiers.cs
- ErrorRuntimeConfig.cs
- WorkflowInstanceTerminatedRecord.cs
- SystemColorTracker.cs
- DesignerUtils.cs
- FilterException.cs
- GlyphCache.cs
- RoutedEvent.cs
- DataRelationCollection.cs
- CookielessHelper.cs
- WebPartConnectionCollection.cs
- MimeWriter.cs
- ClonableStack.cs
- RetrieveVirtualItemEventArgs.cs
- LinkedResourceCollection.cs
- GlyphRunDrawing.cs
- WebServiceMethodData.cs
- KerberosSecurityTokenProvider.cs
- NavigatorOutput.cs
- wgx_exports.cs
- PictureBox.cs
- Bezier.cs
- CodeIterationStatement.cs
- AssemblyAttributes.cs
- XhtmlBasicListAdapter.cs
- RuleValidation.cs
- ExceptionUtil.cs
- RuntimeArgumentHandle.cs
- NullableFloatMinMaxAggregationOperator.cs
- NullableBoolConverter.cs
- MessageQueuePermission.cs
- MobileSysDescriptionAttribute.cs
- DataBindingExpressionBuilder.cs
- CatalogZoneBase.cs
- ISCIIEncoding.cs
- EncoderParameter.cs
- coordinatorscratchpad.cs
- Point4D.cs
- Menu.cs
- SqlServer2KCompatibilityCheck.cs
- HGlobalSafeHandle.cs
- QilPatternFactory.cs
- WebPartCatalogAddVerb.cs
- Propagator.JoinPropagator.cs
- OdbcConnectionString.cs
- SafeTimerHandle.cs
- _SSPISessionCache.cs
- WebPartHeaderCloseVerb.cs
- ExpressionLexer.cs
- TextTreeUndoUnit.cs
- MimeObjectFactory.cs
- HandleInitializationContext.cs
- ToolStripItemCollection.cs
- InputProcessorProfiles.cs
- HttpHandlersSection.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- SrgsDocumentParser.cs