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
- RecognizeCompletedEventArgs.cs
- ApplicationTrust.cs
- ControlType.cs
- Exceptions.cs
- DesignTimeData.cs
- DataSourceControl.cs
- MultidimensionalArrayItemReference.cs
- InvalidWMPVersionException.cs
- DynamicArgumentDesigner.xaml.cs
- HttpContextWrapper.cs
- Rect.cs
- GridViewRowCollection.cs
- StyleXamlParser.cs
- Pen.cs
- TcpChannelHelper.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Label.cs
- ResXResourceReader.cs
- RelationshipNavigation.cs
- ButtonBase.cs
- DataServiceRequest.cs
- TypeDependencyAttribute.cs
- ColorConvertedBitmap.cs
- NativeMethods.cs
- SqlComparer.cs
- MobileControlsSectionHelper.cs
- VarRemapper.cs
- StrongNameMembershipCondition.cs
- StyleXamlParser.cs
- HebrewNumber.cs
- ToolStripSplitStackLayout.cs
- SoapBinding.cs
- FrameworkRichTextComposition.cs
- AccessibleObject.cs
- _TimerThread.cs
- BridgeDataRecord.cs
- ColorPalette.cs
- CfgParser.cs
- SimpleFileLog.cs
- StylusPointPropertyUnit.cs
- DataGridColumnHeaderAutomationPeer.cs
- UrlAuthorizationModule.cs
- WebServicesDescriptionAttribute.cs
- VirtualDirectoryMapping.cs
- TransformGroup.cs
- QueryComponents.cs
- SocketInformation.cs
- ToolStripGripRenderEventArgs.cs
- ArrowControl.xaml.cs
- Utils.cs
- IndexerNameAttribute.cs
- LinqDataSourceView.cs
- SocketElement.cs
- DataColumn.cs
- CodeDelegateCreateExpression.cs
- XPathDocument.cs
- ConfigurationValidatorBase.cs
- BamlTreeMap.cs
- XmlQualifiedName.cs
- PrintDialog.cs
- TrimSurroundingWhitespaceAttribute.cs
- AlternateView.cs
- XsltLoader.cs
- ProjectionRewriter.cs
- PrivacyNoticeBindingElementImporter.cs
- SqlErrorCollection.cs
- Shape.cs
- C14NUtil.cs
- BamlTreeMap.cs
- InheritedPropertyChangedEventArgs.cs
- Run.cs
- BaseAutoFormat.cs
- panel.cs
- DebugHandleTracker.cs
- Viewport3DAutomationPeer.cs
- QilIterator.cs
- FieldToken.cs
- UIElementParagraph.cs
- FaultContractAttribute.cs
- IndexedEnumerable.cs
- WindowsHyperlink.cs
- ComplexPropertyEntry.cs
- SynchronizedDisposablePool.cs
- SqlWriter.cs
- Publisher.cs
- Viewport3DVisual.cs
- StackOverflowException.cs
- AmbientProperties.cs
- Splitter.cs
- XPathDocumentIterator.cs
- Renderer.cs
- Encoder.cs
- NamespaceCollection.cs
- PageContentAsyncResult.cs
- ValueType.cs
- TypeElementCollection.cs
- UnsafeNativeMethodsPenimc.cs
- ReliableMessagingVersionConverter.cs
- DataGridViewSelectedCellCollection.cs
- EncoderParameter.cs