Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RecoverInstanceLocksCommand.cs
- MetadataSet.cs
- Blend.cs
- _Rfc2616CacheValidators.cs
- AvTraceFormat.cs
- IApplicationTrustManager.cs
- FontWeight.cs
- WebConfigurationFileMap.cs
- DesignerVerbToolStripMenuItem.cs
- ReliableInputConnection.cs
- StrokeRenderer.cs
- SourceFilter.cs
- PrintPreviewGraphics.cs
- Char.cs
- EntitySetBaseCollection.cs
- RandomNumberGenerator.cs
- NonClientArea.cs
- PointCollectionConverter.cs
- Html32TextWriter.cs
- SharedPerformanceCounter.cs
- SecurityContextKeyIdentifierClause.cs
- DictionaryMarkupSerializer.cs
- DataColumnPropertyDescriptor.cs
- SupportedAddressingMode.cs
- PermissionAttributes.cs
- XmlAttributeProperties.cs
- ScalarRestriction.cs
- PathFigureCollectionConverter.cs
- ActivationServices.cs
- DataGridViewDataConnection.cs
- FormParameter.cs
- ReadOnlyObservableCollection.cs
- CollectionView.cs
- _SslState.cs
- Literal.cs
- LastQueryOperator.cs
- Track.cs
- NavigationPropertySingletonExpression.cs
- RC2.cs
- UInt16Converter.cs
- DataControlFieldCell.cs
- ConfigurationLocation.cs
- Panel.cs
- BlurEffect.cs
- PriorityQueue.cs
- DesignerImageAdapter.cs
- BaseDataListPage.cs
- EventHandlersStore.cs
- HtmlShim.cs
- TextEditorCharacters.cs
- Model3DCollection.cs
- TypeInitializationException.cs
- TimeZoneInfo.cs
- DataControlFieldCollection.cs
- LookupNode.cs
- XmlSchemaElement.cs
- PropertyBuilder.cs
- FrugalList.cs
- RawStylusActions.cs
- WebResponse.cs
- MaskedTextBoxTextEditor.cs
- SoapSchemaExporter.cs
- AnimationLayer.cs
- RegexGroupCollection.cs
- COAUTHINFO.cs
- AnnotationComponentManager.cs
- MutableAssemblyCacheEntry.cs
- DrawingContextDrawingContextWalker.cs
- TransportContext.cs
- DataGridViewAccessibleObject.cs
- ColumnHeader.cs
- EpmCustomContentDeSerializer.cs
- Vector3DAnimation.cs
- CompilationPass2Task.cs
- MessageBox.cs
- DescriptionAttribute.cs
- WithStatement.cs
- UniqueEventHelper.cs
- CharEntityEncoderFallback.cs
- RtfNavigator.cs
- IgnoreSectionHandler.cs
- FormViewUpdateEventArgs.cs
- Math.cs
- SchemaMerger.cs
- SqlDataReaderSmi.cs
- SizeIndependentAnimationStorage.cs
- CalendarDateChangedEventArgs.cs
- XmlDocument.cs
- SqlUserDefinedAggregateAttribute.cs
- MediaPlayerState.cs
- ResourceExpressionBuilder.cs
- ServiceDescriptions.cs
- EntitySqlQueryCacheEntry.cs
- JoinGraph.cs
- ReaderOutput.cs
- TextLineResult.cs
- OdbcPermission.cs
- COM2IDispatchConverter.cs
- MarshalDirectiveException.cs
- HostAdapter.cs