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
- BaseTemplateBuildProvider.cs
- HostUtils.cs
- _SslSessionsCache.cs
- XmlEncodedRawTextWriter.cs
- DataGridDetailsPresenter.cs
- PriorityItem.cs
- TokenBasedSet.cs
- BinaryNode.cs
- ConnectionsZone.cs
- ToolStripPanelCell.cs
- TrackingStringDictionary.cs
- ControlCachePolicy.cs
- SafeTimerHandle.cs
- XmlnsCache.cs
- DefaultTextStoreTextComposition.cs
- RuntimeConfig.cs
- SettingsPropertyIsReadOnlyException.cs
- FixedSOMTableRow.cs
- FilterRepeater.cs
- ExpressionBuilder.cs
- PasswordTextContainer.cs
- InkCanvas.cs
- DependencyPropertyValueSerializer.cs
- ColumnPropertiesGroup.cs
- HybridDictionary.cs
- TrackingServices.cs
- RootNamespaceAttribute.cs
- DoubleCollectionValueSerializer.cs
- AccessorTable.cs
- RegistryPermission.cs
- HotSpotCollection.cs
- FileDialog.cs
- CacheDict.cs
- CollectionChangedEventManager.cs
- Util.cs
- _UriSyntax.cs
- ConnectionPointCookie.cs
- RootBuilder.cs
- InfoCardSymmetricCrypto.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- DropShadowEffect.cs
- NoClickablePointException.cs
- BindingCompleteEventArgs.cs
- CaretElement.cs
- DataGridViewColumnHeaderCell.cs
- BrowserTree.cs
- RemoteWebConfigurationHostStream.cs
- UIPermission.cs
- HelpPage.cs
- ProxyManager.cs
- Converter.cs
- CmsInterop.cs
- TextRangeBase.cs
- SortableBindingList.cs
- TextServicesDisplayAttributePropertyRanges.cs
- ProgressBar.cs
- MouseGesture.cs
- RegexCode.cs
- FontStretchConverter.cs
- LayoutEditorPart.cs
- RowToFieldTransformer.cs
- RtfToXamlReader.cs
- FontEditor.cs
- ColumnHeaderConverter.cs
- PathTooLongException.cs
- QuadraticBezierSegment.cs
- XmlSchemaCollection.cs
- _NegoStream.cs
- RegexCharClass.cs
- XhtmlBasicControlAdapter.cs
- CompiledXpathExpr.cs
- XComponentModel.cs
- RelationshipManager.cs
- EditorPartChrome.cs
- RuntimeVariableList.cs
- DynamicUpdateCommand.cs
- RuntimeWrappedException.cs
- DynamicValueConverter.cs
- DesigntimeLicenseContextSerializer.cs
- IteratorFilter.cs
- TypedElement.cs
- OneOf.cs
- DesignerVerbCollection.cs
- DependentList.cs
- FileSystemWatcher.cs
- ImageAutomationPeer.cs
- HttpContext.cs
- ObjectDataSourceStatusEventArgs.cs
- SecurityRuntime.cs
- RbTree.cs
- FileResponseElement.cs
- TokenBasedSetEnumerator.cs
- MetadataItemEmitter.cs
- ToolZoneDesigner.cs
- TdsParserSafeHandles.cs
- PolicyUnit.cs
- Helpers.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ControlCollection.cs
- RichTextBoxContextMenu.cs