Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlTitle.cs / 1305376 / HtmlTitle.cs
namespace System.Web.UI.HtmlControls { using System; using System.ComponentModel; 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(); } } } // 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
- ContentDefinition.cs
- ExpressionVisitorHelpers.cs
- RadioButton.cs
- SoapAttributeAttribute.cs
- NameScope.cs
- Opcode.cs
- ManipulationVelocities.cs
- Point3DAnimation.cs
- PropertyValueChangedEvent.cs
- ParameterBuilder.cs
- SQLConvert.cs
- XmlReflectionMember.cs
- StringConverter.cs
- Utilities.cs
- remotingproxy.cs
- WebPartConnection.cs
- DocumentAutomationPeer.cs
- DataGridTable.cs
- cookiecollection.cs
- HwndSubclass.cs
- BCLDebug.cs
- WinHttpWebProxyFinder.cs
- DecimalAnimationUsingKeyFrames.cs
- BitmapFrame.cs
- BounceEase.cs
- BufferAllocator.cs
- MaskedTextBoxTextEditor.cs
- DispatcherExceptionFilterEventArgs.cs
- ListBindingConverter.cs
- DecoderBestFitFallback.cs
- DescendentsWalkerBase.cs
- ConfigurationSectionGroupCollection.cs
- IntSecurity.cs
- XomlCompiler.cs
- DrawingCollection.cs
- CompatibleIComparer.cs
- ObjectDataSourceSelectingEventArgs.cs
- AnnotationAuthorChangedEventArgs.cs
- WebPartDescription.cs
- KnownTypesProvider.cs
- CustomAttributeFormatException.cs
- QueuePropertyVariants.cs
- ParameterCollection.cs
- SvcMapFileLoader.cs
- BorderGapMaskConverter.cs
- UDPClient.cs
- DynamicILGenerator.cs
- StorageSetMapping.cs
- OperandQuery.cs
- _ConnectionGroup.cs
- _PooledStream.cs
- PerformanceCountersElement.cs
- DataGridViewColumnHeaderCell.cs
- RightsManagementInformation.cs
- StorageComplexPropertyMapping.cs
- xmlfixedPageInfo.cs
- XmlRootAttribute.cs
- VersionedStream.cs
- MailMessage.cs
- TableAutomationPeer.cs
- URI.cs
- Propagator.cs
- ContentValidator.cs
- System.Data_BID.cs
- DataGridHeaderBorder.cs
- TemplatePartAttribute.cs
- DataKeyCollection.cs
- InputEventArgs.cs
- XmlSchemaAttribute.cs
- DrawingContextWalker.cs
- WebServiceParameterData.cs
- TreeNodeEventArgs.cs
- VBIdentifierName.cs
- WorkflowServiceAttributes.cs
- TargetControlTypeAttribute.cs
- TextAutomationPeer.cs
- ResourceIDHelper.cs
- DataPagerFieldItem.cs
- EntityCommand.cs
- DateTimeParse.cs
- FontStyle.cs
- PresentationAppDomainManager.cs
- ObjectCacheSettings.cs
- UntrustedRecipientException.cs
- EventListener.cs
- PrintingPermission.cs
- UserPreferenceChangedEventArgs.cs
- CodeTypeDelegate.cs
- SQLGuidStorage.cs
- SortedList.cs
- Polygon.cs
- GradientStop.cs
- SingleStorage.cs
- SmiRequestExecutor.cs
- DbParameterCollectionHelper.cs
- DataBoundControlActionList.cs
- SecurityDescriptor.cs
- StaticFileHandler.cs
- QilFactory.cs
- HeaderCollection.cs