Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CalendarButtonAutomationPeer.cs
- RegularExpressionValidator.cs
- CngKeyBlobFormat.cs
- ListViewContainer.cs
- FontNamesConverter.cs
- DynamicObjectAccessor.cs
- StringDictionary.cs
- PageOrientation.cs
- ArgumentException.cs
- Point3DAnimation.cs
- _TLSstream.cs
- QilValidationVisitor.cs
- KeyProperty.cs
- DecimalFormatter.cs
- SqlProfileProvider.cs
- ListViewInsertionMark.cs
- JoinElimination.cs
- TypeConverter.cs
- ColorInterpolationModeValidation.cs
- Transform3DGroup.cs
- ConfigurationFileMap.cs
- ItemsPanelTemplate.cs
- HttpConfigurationSystem.cs
- _ShellExpression.cs
- NullableDoubleMinMaxAggregationOperator.cs
- AttributeUsageAttribute.cs
- DocumentApplicationJournalEntry.cs
- RegexTree.cs
- WindowVisualStateTracker.cs
- DATA_BLOB.cs
- OutputScopeManager.cs
- ProviderSettingsCollection.cs
- FixedSOMElement.cs
- ProcessModuleCollection.cs
- HierarchicalDataTemplate.cs
- BinaryObjectReader.cs
- CheckBoxStandardAdapter.cs
- EraserBehavior.cs
- BindUriHelper.cs
- MenuAdapter.cs
- StreamUpdate.cs
- EmptyReadOnlyDictionaryInternal.cs
- UrlPath.cs
- QueryExtender.cs
- ObjectTypeMapping.cs
- LocalizabilityAttribute.cs
- DrawingGroup.cs
- coordinatorfactory.cs
- ADMembershipProvider.cs
- ModuleBuilderData.cs
- Authorization.cs
- BStrWrapper.cs
- InternalReceiveMessage.cs
- VBIdentifierNameEditor.cs
- FormViewDeleteEventArgs.cs
- URL.cs
- NumberSubstitution.cs
- RepeaterItemCollection.cs
- ObfuscationAttribute.cs
- SplitterEvent.cs
- IProvider.cs
- TreeViewImageKeyConverter.cs
- AsymmetricSignatureFormatter.cs
- SafeNativeMethods.cs
- ObjectPersistData.cs
- AttributeXamlType.cs
- XsltFunctions.cs
- GroupBoxRenderer.cs
- Zone.cs
- EntityContainerEntitySet.cs
- LinkClickEvent.cs
- SerialStream.cs
- PeerNameRecordCollection.cs
- DesignerHelpers.cs
- DataSourceXmlSerializationAttribute.cs
- StrokeIntersection.cs
- PrivilegeNotHeldException.cs
- SuppressMessageAttribute.cs
- AuthenticatedStream.cs
- TextTabProperties.cs
- GestureRecognitionResult.cs
- KeyValueSerializer.cs
- AlgoModule.cs
- PersonalizationEntry.cs
- HtmlControl.cs
- HostedHttpTransportManager.cs
- Helpers.cs
- GridViewDeleteEventArgs.cs
- BaseServiceProvider.cs
- backend.cs
- Int64KeyFrameCollection.cs
- SQLGuid.cs
- RawStylusInputCustomData.cs
- EntityContainerAssociationSet.cs
- MissingMemberException.cs
- SerializationSectionGroup.cs
- ComboBox.cs
- CheckBoxPopupAdapter.cs
- ISFTagAndGuidCache.cs
- DataGridViewButtonCell.cs