Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProjectionPruner.cs
- LinkConverter.cs
- CommonEndpointBehaviorElement.cs
- Stroke2.cs
- WSHttpSecurity.cs
- Pair.cs
- KnownTypes.cs
- AutomationInteropProvider.cs
- BuildResultCache.cs
- FieldToken.cs
- XmlSerializerAssemblyAttribute.cs
- SimpleWorkerRequest.cs
- DynamicRenderer.cs
- BindingsCollection.cs
- AbstractExpressions.cs
- MetadataProperty.cs
- ProtectedUri.cs
- SiteMapPath.cs
- TdsParserSafeHandles.cs
- DefaultDiscoveryService.cs
- DbConnectionOptions.cs
- HostingPreferredMapPath.cs
- Wizard.cs
- TitleStyle.cs
- DataKey.cs
- ToolStripRendererSwitcher.cs
- DependencyPropertyValueSerializer.cs
- CookieHandler.cs
- RelationshipConverter.cs
- XmlSchemaElement.cs
- DynamicRendererThreadManager.cs
- DataControlFieldCollection.cs
- Border.cs
- FlowDocumentReaderAutomationPeer.cs
- GPRECT.cs
- TypeLoader.cs
- EnvelopedPkcs7.cs
- URLString.cs
- SqlTypesSchemaImporter.cs
- SubMenuStyleCollectionEditor.cs
- Timeline.cs
- AncillaryOps.cs
- LostFocusEventManager.cs
- MissingSatelliteAssemblyException.cs
- XPathDescendantIterator.cs
- QueryStringParameter.cs
- ToolboxDataAttribute.cs
- WmlLiteralTextAdapter.cs
- IntPtr.cs
- HtmlTitle.cs
- PerspectiveCamera.cs
- Accessible.cs
- RuleInfoComparer.cs
- DetailsViewPageEventArgs.cs
- ResourceAssociationType.cs
- SQLResource.cs
- DbInsertCommandTree.cs
- ServiceThrottlingElement.cs
- CategoryNameCollection.cs
- DateTimeFormat.cs
- ProcessHost.cs
- DragEvent.cs
- Pen.cs
- MinMaxParagraphWidth.cs
- CodeMethodReturnStatement.cs
- SourceElementsCollection.cs
- StylusTip.cs
- ZipIOBlockManager.cs
- ClassHandlersStore.cs
- EncryptedReference.cs
- RuleInfoComparer.cs
- EdmMember.cs
- WorkflowControlEndpoint.cs
- DocumentViewerConstants.cs
- SamlAssertion.cs
- FormsIdentity.cs
- Int16KeyFrameCollection.cs
- WindowsToolbarItemAsMenuItem.cs
- Control.cs
- SQLInt64.cs
- PanelStyle.cs
- HotSpotCollectionEditor.cs
- EntityTemplateUserControl.cs
- SessionPageStatePersister.cs
- MemberRelationshipService.cs
- XmlElementCollection.cs
- ResolvePPIDRequest.cs
- OleDbDataAdapter.cs
- Int64Storage.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- UpdatePanelTriggerCollection.cs
- LogicalCallContext.cs
- DataKey.cs
- Int32CollectionValueSerializer.cs
- Speller.cs
- CollectionConverter.cs
- RadioButton.cs
- wmiprovider.cs
- HwndSource.cs
- ActivityMarkupSerializationProvider.cs