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
- EnumMember.cs
- _NetworkingPerfCounters.cs
- Calendar.cs
- StaticTextPointer.cs
- PageBorderless.cs
- EventDescriptor.cs
- ArrangedElement.cs
- DecoderReplacementFallback.cs
- ChunkedMemoryStream.cs
- PropertyOverridesDialog.cs
- DrawingContextFlattener.cs
- SvcMapFileLoader.cs
- TextFormatterHost.cs
- StateWorkerRequest.cs
- basemetadatamappingvisitor.cs
- CategoryAttribute.cs
- ResizeGrip.cs
- NamespaceQuery.cs
- LogReserveAndAppendState.cs
- PageAsyncTask.cs
- ToolStripComboBox.cs
- ComPlusThreadInitializer.cs
- BindableTemplateBuilder.cs
- SelectionChangedEventArgs.cs
- ObjectAnimationUsingKeyFrames.cs
- MergablePropertyAttribute.cs
- BaseInfoTable.cs
- XPathExpr.cs
- BindingContext.cs
- SamlSerializer.cs
- ParameterModifier.cs
- EnlistmentState.cs
- Variant.cs
- ConfigurationManagerInternal.cs
- DateTimeConverter2.cs
- TemplateColumn.cs
- InstanceCollisionException.cs
- SchemaNamespaceManager.cs
- EventLog.cs
- Validator.cs
- input.cs
- LinkConverter.cs
- PackageProperties.cs
- XmlSchemaDocumentation.cs
- KeyInterop.cs
- XamlTreeBuilderBamlRecordWriter.cs
- ListViewHitTestInfo.cs
- FunctionMappingTranslator.cs
- HttpHandlersSection.cs
- FrameSecurityDescriptor.cs
- Visual3D.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ExpandoObject.cs
- EditorBrowsableAttribute.cs
- ReliabilityContractAttribute.cs
- HttpWriter.cs
- XmlTypeMapping.cs
- TextTreeTextElementNode.cs
- WebDisplayNameAttribute.cs
- EndPoint.cs
- ImageMapEventArgs.cs
- BuilderInfo.cs
- complextypematerializer.cs
- SignatureDescription.cs
- DynamicActionMessageFilter.cs
- SharedStream.cs
- XmlNavigatorStack.cs
- ToolboxSnapDragDropEventArgs.cs
- PersistenceTypeAttribute.cs
- SamlAuthorizationDecisionStatement.cs
- TimeZone.cs
- FileSystemEnumerable.cs
- TableLayoutPanelCellPosition.cs
- SQLBytes.cs
- ObjectSecurity.cs
- invalidudtexception.cs
- ItemCollection.cs
- XmlQualifiedName.cs
- TdsRecordBufferSetter.cs
- BaseCodeDomTreeGenerator.cs
- ImageFormatConverter.cs
- ButtonRenderer.cs
- BaseProcessProtocolHandler.cs
- IssuanceTokenProviderBase.cs
- TargetConverter.cs
- KeyValueSerializer.cs
- RuleSettingsCollection.cs
- DoubleCollectionValueSerializer.cs
- PeerMessageDispatcher.cs
- TabRenderer.cs
- ServiceDefaults.cs
- MsmqIntegrationChannelFactory.cs
- AttributeSetAction.cs
- DbFunctionCommandTree.cs
- UpnEndpointIdentityExtension.cs
- GridViewSortEventArgs.cs
- ReplacementText.cs
- DataServiceStreamResponse.cs
- InsufficientMemoryException.cs
- RoleServiceManager.cs