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
- Point3DCollection.cs
- SemaphoreSecurity.cs
- HandlerBase.cs
- SafeFileMapViewHandle.cs
- DockPatternIdentifiers.cs
- ScriptingProfileServiceSection.cs
- SqlNotificationEventArgs.cs
- Geometry3D.cs
- TextPointer.cs
- WSDualHttpBindingElement.cs
- XmlSchemaExternal.cs
- WebPartConnectionsConfigureVerb.cs
- UnsafeNativeMethods.cs
- CodeIdentifiers.cs
- ParentQuery.cs
- OutputCacheSettingsSection.cs
- CommandManager.cs
- RuleConditionDialog.Designer.cs
- EventLogSession.cs
- HideDisabledControlAdapter.cs
- Expression.cs
- SqlNotificationEventArgs.cs
- ListViewAutomationPeer.cs
- ResourceDisplayNameAttribute.cs
- ContentAlignmentEditor.cs
- InputProcessorProfiles.cs
- WebReferencesBuildProvider.cs
- DataContractSerializerOperationGenerator.cs
- MaskInputRejectedEventArgs.cs
- DocumentApplicationJournalEntry.cs
- ProfessionalColors.cs
- securestring.cs
- securitymgrsite.cs
- SafeFindHandle.cs
- Regex.cs
- GeometryModel3D.cs
- PocoEntityKeyStrategy.cs
- InvokeHandlers.cs
- IgnoreFileBuildProvider.cs
- WindowShowOrOpenTracker.cs
- MailWriter.cs
- D3DImage.cs
- TraceRecord.cs
- CodeArgumentReferenceExpression.cs
- SHA384Managed.cs
- StyleSelector.cs
- ConstructorBuilder.cs
- VarRemapper.cs
- WeakReadOnlyCollection.cs
- ZoneButton.cs
- StateManagedCollection.cs
- BCryptSafeHandles.cs
- PropertyPathConverter.cs
- Int64AnimationBase.cs
- DiscoveryMessageProperty.cs
- StylusTip.cs
- ErrorFormatterPage.cs
- ExpandCollapsePattern.cs
- ADConnectionHelper.cs
- ServiceAuthorizationManager.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- CurrencyWrapper.cs
- CatalogZone.cs
- EntityContainerEmitter.cs
- SQLGuid.cs
- SmtpFailedRecipientsException.cs
- CellIdBoolean.cs
- SchemaMerger.cs
- MsmqMessageProperty.cs
- InternalBufferOverflowException.cs
- XmlMemberMapping.cs
- ColumnHeader.cs
- DataGridAddNewRow.cs
- login.cs
- DoubleStorage.cs
- MailAddress.cs
- Thickness.cs
- LabelEditEvent.cs
- CodeMethodInvokeExpression.cs
- NonBatchDirectoryCompiler.cs
- TransactedReceiveData.cs
- RequestQueryProcessor.cs
- GridErrorDlg.cs
- SortExpressionBuilder.cs
- ModelChangedEventArgsImpl.cs
- Scanner.cs
- NetCodeGroup.cs
- XmlSigningNodeWriter.cs
- CapacityStreamGeometryContext.cs
- BuildResult.cs
- XmlValueConverter.cs
- ClientScriptItem.cs
- ByteStreamMessageUtility.cs
- X509ChainPolicy.cs
- BrowserTree.cs
- Composition.cs
- MultiAsyncResult.cs
- SqlCacheDependencyDatabase.cs
- ApplicationException.cs
- CustomValidator.cs