Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlLink.cs / 1305376 / 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)) ] 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)) ] 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
- ProjectionCamera.cs
- ProcessProtocolHandler.cs
- SymmetricSecurityProtocolFactory.cs
- TextSelectionHelper.cs
- XmlEnumAttribute.cs
- CodeExpressionStatement.cs
- FormViewInsertedEventArgs.cs
- HttpClientCertificate.cs
- ConcurrentDictionary.cs
- InputScopeConverter.cs
- ECDiffieHellmanPublicKey.cs
- lengthconverter.cs
- WmlTextViewAdapter.cs
- IncrementalCompileAnalyzer.cs
- OdbcDataAdapter.cs
- GeneralTransform3DTo2D.cs
- HttpCachePolicy.cs
- WorkflowValidationFailedException.cs
- BrowserTree.cs
- SettingsPropertyValueCollection.cs
- HtmlInputControl.cs
- SendMailErrorEventArgs.cs
- ClientRoleProvider.cs
- SqlFunctions.cs
- IisTraceListener.cs
- TextEditorParagraphs.cs
- PointAnimationUsingPath.cs
- StringAnimationBase.cs
- ResourcePool.cs
- EncoderExceptionFallback.cs
- securitycriticaldataformultiplegetandset.cs
- DrawingVisual.cs
- QuadraticBezierSegment.cs
- ForeignKeyConstraint.cs
- SequentialOutput.cs
- GridItemProviderWrapper.cs
- WorkflowExecutor.cs
- StateElement.cs
- DecoratedNameAttribute.cs
- CryptoHandle.cs
- TableChangeProcessor.cs
- EUCJPEncoding.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- CodeIdentifiers.cs
- SqlClientPermission.cs
- ProxyElement.cs
- ILGenerator.cs
- CallbackHandler.cs
- XpsDocument.cs
- HttpCachePolicy.cs
- PersianCalendar.cs
- TextElementCollectionHelper.cs
- UnsafeNativeMethods.cs
- ComboBoxRenderer.cs
- ScriptingWebServicesSectionGroup.cs
- BitmapVisualManager.cs
- LogLogRecordEnumerator.cs
- BlobPersonalizationState.cs
- NetCodeGroup.cs
- ConsumerConnectionPoint.cs
- _SslState.cs
- OdbcCommand.cs
- BufferedWebEventProvider.cs
- ProfileEventArgs.cs
- RegexTree.cs
- XmlAnyAttributeAttribute.cs
- ReferencedCollectionType.cs
- Matrix.cs
- OleCmdHelper.cs
- FileNotFoundException.cs
- TextContainerChangeEventArgs.cs
- XmlLinkedNode.cs
- SubtreeProcessor.cs
- XmlSchemaSimpleContentRestriction.cs
- AttachmentCollection.cs
- RegexCharClass.cs
- PolicyException.cs
- PieceDirectory.cs
- GridView.cs
- PngBitmapDecoder.cs
- Group.cs
- DBDataPermission.cs
- XmlSecureResolver.cs
- AddressAccessDeniedException.cs
- RequestedSignatureDialog.cs
- EntityViewContainer.cs
- EmptyImpersonationContext.cs
- PerspectiveCamera.cs
- cryptoapiTransform.cs
- PropertyPathConverter.cs
- Translator.cs
- PageBreakRecord.cs
- MembershipValidatePasswordEventArgs.cs
- PostBackOptions.cs
- WmlPanelAdapter.cs
- UIElementIsland.cs
- unsafeIndexingFilterStream.cs
- DataPagerFieldCollection.cs
- StaticExtension.cs
- ToolStripRendererSwitcher.cs