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
- SqlConnectionManager.cs
- EmptyEnumerator.cs
- DetailsView.cs
- ToolStripDropDownClosingEventArgs.cs
- VisualStateChangedEventArgs.cs
- NetTcpSecurity.cs
- ColorPalette.cs
- TreeBuilder.cs
- CommandEventArgs.cs
- MimeAnyImporter.cs
- TypeDescriptionProvider.cs
- Guid.cs
- UTF8Encoding.cs
- Atom10FormatterFactory.cs
- SymbolMethod.cs
- CustomErrorsSectionWrapper.cs
- SqlFormatter.cs
- StringFreezingAttribute.cs
- OdbcParameterCollection.cs
- SpellCheck.cs
- DesignTimeHTMLTextWriter.cs
- WebServiceClientProxyGenerator.cs
- PromptBuilder.cs
- DataRow.cs
- Pen.cs
- BitStack.cs
- RawMouseInputReport.cs
- Utils.cs
- ButtonField.cs
- SchemaObjectWriter.cs
- UserNamePasswordValidationMode.cs
- UserControl.cs
- GridPattern.cs
- StringDictionary.cs
- DrawingDrawingContext.cs
- SystemInfo.cs
- ComPlusInstanceProvider.cs
- TextRangeEdit.cs
- SvcMapFileLoader.cs
- PagedDataSource.cs
- MatrixTransform3D.cs
- CryptoApi.cs
- DataPager.cs
- DataGridViewRowEventArgs.cs
- UrlPath.cs
- PrinterUnitConvert.cs
- DrawItemEvent.cs
- UIAgentRequest.cs
- GestureRecognitionResult.cs
- TypeKeyValue.cs
- InputLangChangeEvent.cs
- ComponentEditorPage.cs
- DataControlFieldCell.cs
- M3DUtil.cs
- HtmlLiteralTextAdapter.cs
- AbstractSvcMapFileLoader.cs
- MostlySingletonList.cs
- NativeMethods.cs
- Formatter.cs
- Size.cs
- DataGridCellsPresenter.cs
- PrintEvent.cs
- StateBag.cs
- PeerUnsafeNativeMethods.cs
- SqlUdtInfo.cs
- TransformValueSerializer.cs
- DataGridHeaderBorder.cs
- BasicDesignerLoader.cs
- WebPartConnectionsConfigureVerb.cs
- TableLayoutStyleCollection.cs
- StringUtil.cs
- SqlProfileProvider.cs
- AccessDataSource.cs
- PkcsMisc.cs
- DbConnectionPoolGroupProviderInfo.cs
- _SafeNetHandles.cs
- ControlFilterExpression.cs
- CodeDelegateCreateExpression.cs
- RegexGroupCollection.cs
- _NetRes.cs
- NestPullup.cs
- ShutDownListener.cs
- RsaSecurityKey.cs
- MailFileEditor.cs
- DockPatternIdentifiers.cs
- DrawItemEvent.cs
- TransactionException.cs
- BitmapEffect.cs
- LoginViewDesigner.cs
- XmlDataDocument.cs
- BehaviorDragDropEventArgs.cs
- TemplatePropertyEntry.cs
- ConfigurationValues.cs
- SizeAnimationUsingKeyFrames.cs
- IndicFontClient.cs
- Scanner.cs
- ConfigurationLocation.cs
- StatusStrip.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- CacheRequest.cs