Code:
/ DotNET / DotNET / 8.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
- FileAuthorizationModule.cs
- NavigatorInput.cs
- _Win32.cs
- LinqDataSourceDisposeEventArgs.cs
- HttpListenerPrefixCollection.cs
- ObjectDataSourceMethodEditor.cs
- DeflateStream.cs
- FactoryGenerator.cs
- HandledMouseEvent.cs
- Root.cs
- EntryPointNotFoundException.cs
- MenuItem.cs
- SqlMethodAttribute.cs
- MemberDomainMap.cs
- FacetDescription.cs
- TextStore.cs
- UrlPath.cs
- CodeIndexerExpression.cs
- OperationCanceledException.cs
- QueryOutputWriterV1.cs
- Padding.cs
- WebMessageEncodingBindingElement.cs
- NotificationContext.cs
- Converter.cs
- HtmlInputCheckBox.cs
- PersonalizableTypeEntry.cs
- IntegerValidator.cs
- BackStopAuthenticationModule.cs
- FacetValues.cs
- ContextInformation.cs
- BinHexEncoding.cs
- TdsParserStaticMethods.cs
- DataSourceHelper.cs
- PrefixQName.cs
- ThrowHelper.cs
- ByteStorage.cs
- ProxyWebPartManager.cs
- sqlpipe.cs
- ToolStripContainer.cs
- Msec.cs
- GuidConverter.cs
- GridEntryCollection.cs
- AttachedPropertyBrowsableAttribute.cs
- Repeater.cs
- WebPartConnectionsCancelEventArgs.cs
- ClientApiGenerator.cs
- MultiBinding.cs
- MemberMaps.cs
- ObjectManager.cs
- TrustManagerMoreInformation.cs
- ModelUIElement3D.cs
- WebErrorHandler.cs
- GridViewRow.cs
- MDIClient.cs
- PolyQuadraticBezierSegment.cs
- StringUtil.cs
- ProxyWebPartManager.cs
- ImageUrlEditor.cs
- CodeBinaryOperatorExpression.cs
- EntityContainerAssociationSet.cs
- DataRelationCollection.cs
- EntityProviderFactory.cs
- DataSourceCacheDurationConverter.cs
- Drawing.cs
- ReflectionTypeLoadException.cs
- TreeNodeConverter.cs
- RadioButtonList.cs
- LineServicesCallbacks.cs
- AnnotationObservableCollection.cs
- ResourceReferenceKeyNotFoundException.cs
- InputReportEventArgs.cs
- SpAudioStreamWrapper.cs
- TabControl.cs
- CodeDomLoader.cs
- OleAutBinder.cs
- SmtpMail.cs
- Operator.cs
- BoundField.cs
- FreezableDefaultValueFactory.cs
- ChtmlCommandAdapter.cs
- StandardOleMarshalObject.cs
- QilStrConcatenator.cs
- NumericUpDownAccelerationCollection.cs
- DrawingGroupDrawingContext.cs
- WhitespaceSignificantCollectionAttribute.cs
- DateTimeOffsetAdapter.cs
- DataGridViewColumnStateChangedEventArgs.cs
- MarkupWriter.cs
- DesignerLoader.cs
- TextEvent.cs
- DataTableReader.cs
- ForEachDesigner.xaml.cs
- UxThemeWrapper.cs
- ObjectViewQueryResultData.cs
- errorpatternmatcher.cs
- LinkLabelLinkClickedEvent.cs
- NetworkStream.cs
- EtwTrace.cs
- ReadOnlyCollection.cs
- AggregateNode.cs