Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlTitle.cs / 1 / HtmlTitle.cs
namespace System.Web.UI.HtmlControls { using System; using System.ComponentModel; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class HtmlTitle : HtmlControl { private string _text; public HtmlTitle() : base("title") { } [ WebCategory("Appearance"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), Localizable(true), PersistenceMode(PersistenceMode.InnerDefaultProperty) ] public virtual string Text { get { if (_text == null) { return String.Empty; } return _text; } set { _text = value; } } protected override void AddParsedSubObject(object obj) { if (obj is LiteralControl) { _text = ((LiteralControl)obj).Text; } else { base.AddParsedSubObject(obj); } } // Allow child controls to support databinding expressions as inner text. protected override ControlCollection CreateControlCollection() { return new ControlCollection(this); } protected internal override void Render(HtmlTextWriter writer) { writer.RenderBeginTag(HtmlTextWriterTag.Title); if (HasControls() || HasRenderDelegate()) { RenderChildren(writer); } else if (_text != null) { writer.Write(_text); } writer.RenderEndTag(); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Registry.cs
- BaseResourcesBuildProvider.cs
- MobileUITypeEditor.cs
- OdbcCommand.cs
- FreezableOperations.cs
- XmlUrlResolver.cs
- ChooseAction.cs
- UriExt.cs
- ListDictionary.cs
- WebRequestModulesSection.cs
- TypefaceCollection.cs
- InstanceOwnerException.cs
- _CommandStream.cs
- DllNotFoundException.cs
- FormViewDesigner.cs
- ListComponentEditor.cs
- CallbackCorrelationInitializer.cs
- ResourceCodeDomSerializer.cs
- LocationFactory.cs
- SynchronousChannel.cs
- DocumentPaginator.cs
- InfocardExtendedInformationEntry.cs
- TableLayoutPanelResizeGlyph.cs
- RelationshipType.cs
- CngProvider.cs
- RefType.cs
- LinqDataSourceContextEventArgs.cs
- WebContext.cs
- EdmProperty.cs
- OperatingSystem.cs
- PlanCompiler.cs
- ProcessProtocolHandler.cs
- Identity.cs
- BypassElementCollection.cs
- TextTreeFixupNode.cs
- RichTextBoxAutomationPeer.cs
- DocumentViewerHelper.cs
- ListViewInsertEventArgs.cs
- ListViewCommandEventArgs.cs
- ParagraphResult.cs
- BCLDebug.cs
- xmlsaver.cs
- ArraySortHelper.cs
- DeviceContext2.cs
- SamlDoNotCacheCondition.cs
- Attributes.cs
- WmlPageAdapter.cs
- DbSource.cs
- EventPrivateKey.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- CryptoApi.cs
- CodeEventReferenceExpression.cs
- TableLayout.cs
- HybridDictionary.cs
- FillErrorEventArgs.cs
- RtfFormatStack.cs
- SystemColors.cs
- IOThreadScheduler.cs
- LoginView.cs
- SQLDateTime.cs
- SqlDataSourceStatusEventArgs.cs
- WebPartZoneCollection.cs
- TimerElapsedEvenArgs.cs
- ReplyAdapterChannelListener.cs
- TableLayoutStyle.cs
- XmlResolver.cs
- ExecutedRoutedEventArgs.cs
- QueryStringParameter.cs
- StylusButton.cs
- Intellisense.cs
- TableCellCollection.cs
- AsyncResult.cs
- CodeAccessSecurityEngine.cs
- Stack.cs
- AsyncOperationManager.cs
- wgx_render.cs
- ExpressionConverter.cs
- ValidationSummary.cs
- Delegate.cs
- IntegerValidatorAttribute.cs
- HttpApplication.cs
- SchemaImporterExtension.cs
- LazyTextWriterCreator.cs
- HtmlInputText.cs
- DataContractSerializerElement.cs
- BatchParser.cs
- ObjectSecurity.cs
- FileVersionInfo.cs
- PersistenceIOParticipant.cs
- AnyReturnReader.cs
- TouchDevice.cs
- PenThreadWorker.cs
- GraphicsPathIterator.cs
- DropSource.cs
- CookielessHelper.cs
- ContextStaticAttribute.cs
- ThaiBuddhistCalendar.cs
- CustomError.cs
- OleServicesContext.cs
- RichTextBox.cs