Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlLink.cs / 1305376 / 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)) ] 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemas.cs
- Component.cs
- VariableDesigner.xaml.cs
- BrowserDefinition.cs
- ListViewItemSelectionChangedEvent.cs
- GuidelineCollection.cs
- EntityModelSchemaGenerator.cs
- TabPageDesigner.cs
- XmlEntity.cs
- PrimitiveCodeDomSerializer.cs
- DesignerActionMethodItem.cs
- IPAddressCollection.cs
- WebPartTransformerCollection.cs
- ProcessInfo.cs
- ReadingWritingEntityEventArgs.cs
- CachingHintValidation.cs
- NavigatingCancelEventArgs.cs
- LocatorGroup.cs
- COSERVERINFO.cs
- SplashScreen.cs
- SimpleHandlerBuildProvider.cs
- ObjectSecurity.cs
- XmlLoader.cs
- NullableBoolConverter.cs
- DiagnosticsConfiguration.cs
- DataFormats.cs
- XmlnsCache.cs
- CellNormalizer.cs
- RowBinding.cs
- BaseTemplateCodeDomTreeGenerator.cs
- RequestQueue.cs
- Operators.cs
- SQLDateTime.cs
- DependencyObjectPropertyDescriptor.cs
- Hex.cs
- RegistrySecurity.cs
- SimpleRecyclingCache.cs
- Style.cs
- PopupEventArgs.cs
- __Error.cs
- ToolBarOverflowPanel.cs
- Invariant.cs
- AmbiguousMatchException.cs
- StructuralCache.cs
- WorkflowDebuggerSteppingAttribute.cs
- EnumUnknown.cs
- WebPartVerb.cs
- EntityConnection.cs
- DetailsViewInsertedEventArgs.cs
- OleDbConnectionInternal.cs
- CompilerInfo.cs
- FontEmbeddingManager.cs
- SizeF.cs
- InfiniteIntConverter.cs
- GenericAuthenticationEventArgs.cs
- AnnotationAdorner.cs
- UnaryQueryOperator.cs
- DocumentViewerHelper.cs
- SkewTransform.cs
- SQLMoneyStorage.cs
- EpmSyndicationContentDeSerializer.cs
- thaishape.cs
- SafeRightsManagementQueryHandle.cs
- EntityContainerAssociationSet.cs
- ControlValuePropertyAttribute.cs
- SecurityTokenTypes.cs
- DataSourceView.cs
- SoapSchemaImporter.cs
- DateTimeFormatInfo.cs
- GenericArgumentsUpdater.cs
- ProxyManager.cs
- FixedStringLookup.cs
- DefaultDiscoveryServiceExtension.cs
- Brush.cs
- Utils.cs
- SqlWriter.cs
- SamlConstants.cs
- FormsAuthenticationConfiguration.cs
- Trace.cs
- EntityDataSourceChangingEventArgs.cs
- CapabilitiesSection.cs
- ImageMap.cs
- IgnoreFileBuildProvider.cs
- WindowClosedEventArgs.cs
- Material.cs
- ReferenceSchema.cs
- SimpleApplicationHost.cs
- PolicyFactory.cs
- XmlSchemaImport.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- SQLString.cs
- LinqDataSourceValidationException.cs
- XpsFont.cs
- DBAsyncResult.cs
- InsufficientMemoryException.cs
- DeleteWorkflowOwnerCommand.cs
- DataViewSetting.cs
- ObjectDataSourceDesigner.cs
- PageAsyncTask.cs
- State.cs