Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OdbcEnvironmentHandle.cs
- ListControlConvertEventArgs.cs
- SelectionRangeConverter.cs
- DetailsViewInsertEventArgs.cs
- OpenTypeLayout.cs
- NoResizeHandleGlyph.cs
- TypeSystem.cs
- VerificationException.cs
- Point3D.cs
- DBAsyncResult.cs
- CachingParameterInspector.cs
- WmiInstallComponent.cs
- SessionState.cs
- SelectionPattern.cs
- TreeView.cs
- UshortList2.cs
- TraceSwitch.cs
- SelectionRange.cs
- UpdateManifestForBrowserApplication.cs
- MSAANativeProvider.cs
- MailAddressCollection.cs
- RecognitionResult.cs
- UInt16Storage.cs
- NativeMethods.cs
- CommandExpr.cs
- DrawingCollection.cs
- Token.cs
- ResourcesBuildProvider.cs
- StaticResourceExtension.cs
- ImpersonationOption.cs
- WsatTransactionFormatter.cs
- QilFactory.cs
- SettingsPropertyValue.cs
- DetailsViewDeleteEventArgs.cs
- MappingItemCollection.cs
- UInt16.cs
- ByteAnimationUsingKeyFrames.cs
- JsonSerializer.cs
- EnumMemberAttribute.cs
- TagPrefixInfo.cs
- IpcClientChannel.cs
- NavigationCommands.cs
- SessionPageStatePersister.cs
- TimelineCollection.cs
- DataViewManagerListItemTypeDescriptor.cs
- XappLauncher.cs
- DispatcherTimer.cs
- Filter.cs
- DataControlPagerLinkButton.cs
- BitmapEffectrendercontext.cs
- DoWorkEventArgs.cs
- FromRequest.cs
- Single.cs
- TextTabProperties.cs
- HashMembershipCondition.cs
- ProtocolsSection.cs
- BitmapSizeOptions.cs
- DataGridViewLayoutData.cs
- XPathNodeIterator.cs
- HyperLinkColumn.cs
- SystemWebCachingSectionGroup.cs
- UrlMapping.cs
- KeyGestureConverter.cs
- LayoutTableCell.cs
- TextTreeTextBlock.cs
- RoutedCommand.cs
- Double.cs
- OLEDB_Util.cs
- TraceListener.cs
- CreateUserErrorEventArgs.cs
- SoapInteropTypes.cs
- OrderedDictionaryStateHelper.cs
- ValuePatternIdentifiers.cs
- AppDomainShutdownMonitor.cs
- Group.cs
- DirectoryInfo.cs
- VScrollProperties.cs
- ModelVisual3D.cs
- _RequestLifetimeSetter.cs
- MimeBasePart.cs
- Globals.cs
- ScriptBehaviorDescriptor.cs
- VisualStyleTypesAndProperties.cs
- PKCS1MaskGenerationMethod.cs
- ScriptResourceHandler.cs
- TagPrefixAttribute.cs
- CompilerWrapper.cs
- CallSiteOps.cs
- SQLBoolean.cs
- BamlRecords.cs
- RTTypeWrapper.cs
- Stack.cs
- WindowsPrincipal.cs
- WindowsRegion.cs
- DataContractJsonSerializer.cs
- Calendar.cs
- Section.cs
- ADMembershipProvider.cs
- ContextMenu.cs
- ConditionCollection.cs