Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- HashAlgorithm.cs
- ConcurrentDictionary.cs
- AQNBuilder.cs
- Int32KeyFrameCollection.cs
- FileReservationCollection.cs
- DiffuseMaterial.cs
- SystemBrushes.cs
- CalendarModeChangedEventArgs.cs
- StorageComplexTypeMapping.cs
- IntegerValidator.cs
- CompositeFontParser.cs
- XmlSchemaSimpleTypeUnion.cs
- HwndTarget.cs
- XPathNavigatorReader.cs
- DocumentAutomationPeer.cs
- ProvidersHelper.cs
- activationcontext.cs
- ToggleProviderWrapper.cs
- StorageEndPropertyMapping.cs
- EnumConverter.cs
- RayMeshGeometry3DHitTestResult.cs
- Page.cs
- SchemaAttDef.cs
- ClientProxyGenerator.cs
- FixedTextView.cs
- SettingsBindableAttribute.cs
- RelationshipEntry.cs
- GrammarBuilderRuleRef.cs
- SqlAggregateChecker.cs
- EntityDataSourceReferenceGroup.cs
- SoapSchemaMember.cs
- XmlILConstructAnalyzer.cs
- LicenseProviderAttribute.cs
- ADConnectionHelper.cs
- DataKeyArray.cs
- DataGridViewTopRowAccessibleObject.cs
- HostingEnvironment.cs
- TrailingSpaceComparer.cs
- ItemCheckedEvent.cs
- AsyncContentLoadedEventArgs.cs
- LabelEditEvent.cs
- InternalPolicyElement.cs
- HwndSubclass.cs
- TabRenderer.cs
- SizeAnimationClockResource.cs
- InputScopeAttribute.cs
- PeerChannelFactory.cs
- RadioButtonStandardAdapter.cs
- ToolBarPanel.cs
- WebPartsPersonalizationAuthorization.cs
- ipaddressinformationcollection.cs
- MsmqBindingFilter.cs
- TypeConverterAttribute.cs
- DesignerSerializationOptionsAttribute.cs
- Interlocked.cs
- PropertyNames.cs
- ExeContext.cs
- nulltextcontainer.cs
- DependencyObjectPropertyDescriptor.cs
- TableCellCollection.cs
- CryptoKeySecurity.cs
- Monitor.cs
- Frame.cs
- FileLogRecordEnumerator.cs
- TableLayoutSettingsTypeConverter.cs
- CorePropertiesFilter.cs
- InvalidComObjectException.cs
- DesignerImageAdapter.cs
- DefinitionUpdate.cs
- UpdatePanelTrigger.cs
- WebPartTransformerAttribute.cs
- ProjectedSlot.cs
- BooleanExpr.cs
- PointConverter.cs
- TemplateBamlTreeBuilder.cs
- GeometryHitTestResult.cs
- StrokeNodeEnumerator.cs
- HMACSHA256.cs
- Visual3D.cs
- UnsafeMethods.cs
- MethodToken.cs
- SoapMessage.cs
- DefaultSection.cs
- FlowDocumentPageViewerAutomationPeer.cs
- PolicyStatement.cs
- EventData.cs
- ActivityInfo.cs
- Camera.cs
- BinaryObjectWriter.cs
- RemotingException.cs
- FontResourceCache.cs
- DbProviderFactories.cs
- SmtpNegotiateAuthenticationModule.cs
- CacheForPrimitiveTypes.cs
- DynamicObjectAccessor.cs
- DataControlFieldCell.cs
- ComplexPropertyEntry.cs
- XmlReader.cs
- GlobalEventManager.cs
- HuffmanTree.cs