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
- SingleAnimationUsingKeyFrames.cs
- XmlSerializableWriter.cs
- FontWeightConverter.cs
- ViewPort3D.cs
- XmlSchemaImport.cs
- FormattedText.cs
- COMException.cs
- ContentFileHelper.cs
- exports.cs
- StyleSheetRefUrlEditor.cs
- DeflateStreamAsyncResult.cs
- XmlExceptionHelper.cs
- PreviousTrackingServiceAttribute.cs
- CommentEmitter.cs
- SystemResourceKey.cs
- SrgsGrammarCompiler.cs
- WebPartCloseVerb.cs
- MenuItemStyleCollection.cs
- ConfigurationLockCollection.cs
- Compensate.cs
- StructureChangedEventArgs.cs
- Rectangle.cs
- ErasingStroke.cs
- SHA256.cs
- SlipBehavior.cs
- ToolboxDataAttribute.cs
- ReflectionPermission.cs
- SiteMapNodeItemEventArgs.cs
- CompilerErrorCollection.cs
- VariableAction.cs
- StrokeNodeOperations2.cs
- MessageDispatch.cs
- ReadContentAsBinaryHelper.cs
- TypeDescriptionProviderAttribute.cs
- StylusPointProperties.cs
- SQLStringStorage.cs
- BasicKeyConstraint.cs
- ControlCodeDomSerializer.cs
- ErrorFormatterPage.cs
- XmlSchemaGroupRef.cs
- DesignTimeParseData.cs
- WindowsGraphicsWrapper.cs
- QuaternionRotation3D.cs
- MarkedHighlightComponent.cs
- DrawingVisual.cs
- InternalMappingException.cs
- RelatedImageListAttribute.cs
- SecurityManager.cs
- XmlReflectionImporter.cs
- BrowsableAttribute.cs
- PerformanceCounterPermission.cs
- PieceDirectory.cs
- DetailsViewCommandEventArgs.cs
- PropertyChangedEventManager.cs
- EndpointDiscoveryMetadata11.cs
- ToolStripRendererSwitcher.cs
- CryptographicAttribute.cs
- SystemException.cs
- UseManagedPresentationBindingElement.cs
- DefaultWorkflowTransactionService.cs
- SqlBuffer.cs
- WindowsIdentity.cs
- SafeEventLogWriteHandle.cs
- UInt64.cs
- DataTableReader.cs
- OleDbSchemaGuid.cs
- LogicalChannelCollection.cs
- DrawingCollection.cs
- SoapCommonClasses.cs
- _BasicClient.cs
- SqlDataSourceFilteringEventArgs.cs
- ToolStripKeyboardHandlingService.cs
- ADRole.cs
- ObjectViewEntityCollectionData.cs
- TextTreeInsertElementUndoUnit.cs
- CodeBinaryOperatorExpression.cs
- FontInfo.cs
- BitSet.cs
- BooleanFunctions.cs
- SafeNativeMethodsCLR.cs
- PolicyImporterElementCollection.cs
- GraphicsState.cs
- DES.cs
- FactoryGenerator.cs
- RuntimeResourceSet.cs
- EncoderBestFitFallback.cs
- SourceCollection.cs
- MetadataFile.cs
- DefaultAsyncDataDispatcher.cs
- SystemFonts.cs
- Console.cs
- _SSPIWrapper.cs
- ContextStack.cs
- coordinatorfactory.cs
- oledbconnectionstring.cs
- ScriptDescriptor.cs
- TextTabProperties.cs
- WebControlToolBoxItem.cs
- DbConnectionPoolOptions.cs
- ViewStateException.cs