Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlLink.cs / 1 / HtmlLink.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.HtmlControls {
using System;
using System.Security;
using System.Security.Permissions;
using System.ComponentModel;
[
ControlBuilderAttribute(typeof(HtmlEmptyTagControlBuilder))
]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class HtmlLink : HtmlControl {
public HtmlLink() : base("link") {
}
[
WebCategory("Action"),
DefaultValue(""),
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden),
UrlProperty(),
]
public virtual string Href {
get {
string s = Attributes["href"];
return ((s != null) ? s : String.Empty);
}
set {
Attributes["href"] = MapStringAttributeToString(value);
}
}
protected override void RenderAttributes(HtmlTextWriter writer) {
// Resolve the client href based before rendering the attribute.
if (!String.IsNullOrEmpty(Href)) {
Attributes["href"] = ResolveClientUrl(Href);
}
base.RenderAttributes(writer);
}
protected internal override void Render(HtmlTextWriter writer) {
writer.WriteBeginTag(TagName);
RenderAttributes(writer);
writer.Write(HtmlTextWriter.SelfClosingTagEnd);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListItemParagraph.cs
- InProcStateClientManager.cs
- PersonalizablePropertyEntry.cs
- CustomError.cs
- ScriptServiceAttribute.cs
- MultiByteCodec.cs
- HeaderedItemsControl.cs
- PreviewKeyDownEventArgs.cs
- ManifestResourceInfo.cs
- RegexGroupCollection.cs
- FontSourceCollection.cs
- IntegerFacetDescriptionElement.cs
- GeometryModel3D.cs
- ToolStripGrip.cs
- Point4D.cs
- ObfuscationAttribute.cs
- JsonEnumDataContract.cs
- WebExceptionStatus.cs
- TreeViewImageIndexConverter.cs
- EventPrivateKey.cs
- ComAdminWrapper.cs
- MultiView.cs
- Emitter.cs
- LinqDataSource.cs
- CssStyleCollection.cs
- OdbcReferenceCollection.cs
- HScrollBar.cs
- InvalidPrinterException.cs
- SecurityResources.cs
- MouseBinding.cs
- SqlParameterCollection.cs
- COSERVERINFO.cs
- ChangeBlockUndoRecord.cs
- TableLayoutStyle.cs
- BaseDataList.cs
- baseshape.cs
- ReaderOutput.cs
- UserNamePasswordValidator.cs
- VisualProxy.cs
- DataBoundControlActionList.cs
- HandlerBase.cs
- GridViewPageEventArgs.cs
- FilteredXmlReader.cs
- RawUIStateInputReport.cs
- EtwTrackingParticipant.cs
- NameValuePermission.cs
- Ray3DHitTestResult.cs
- EnumerableCollectionView.cs
- XamlRtfConverter.cs
- ThousandthOfEmRealPoints.cs
- ProviderUtil.cs
- ReadContentAsBinaryHelper.cs
- ImageMapEventArgs.cs
- EntitySetDataBindingList.cs
- SiteMapDataSourceView.cs
- ActivityXRefConverter.cs
- DetailsViewInsertedEventArgs.cs
- ActivityBindForm.Designer.cs
- SystemWebSectionGroup.cs
- PrintEvent.cs
- DependencyPropertyKey.cs
- ContextProperty.cs
- SecurityContextSecurityTokenAuthenticator.cs
- GeneratedContractType.cs
- OverflowException.cs
- EntityTransaction.cs
- ItemDragEvent.cs
- HighlightVisual.cs
- Facet.cs
- DataControlFieldCell.cs
- SessionStateUtil.cs
- XmlHierarchicalEnumerable.cs
- PingOptions.cs
- HtmlGenericControl.cs
- ServiceControllerDesigner.cs
- mda.cs
- InputManager.cs
- ThumbButtonInfo.cs
- ToolStripGripRenderEventArgs.cs
- ObjectList.cs
- DashStyle.cs
- DataGridViewHitTestInfo.cs
- Int16Storage.cs
- RenderTargetBitmap.cs
- InputProcessorProfilesLoader.cs
- XmlElementCollection.cs
- XmlSerializerAssemblyAttribute.cs
- CryptoApi.cs
- EventPrivateKey.cs
- Comparer.cs
- RealizedColumnsBlock.cs
- StaticResourceExtension.cs
- CollectionViewGroup.cs
- EventSinkActivityDesigner.cs
- XmlSchemaSequence.cs
- columnmapkeybuilder.cs
- SoapAttributeOverrides.cs
- TextFormatterContext.cs
- InvalidCastException.cs
- CallbackValidator.cs