Code:
/ DotNET / DotNET / 8.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
- RowUpdatedEventArgs.cs
- MouseEvent.cs
- StreamUpgradeAcceptor.cs
- BindingGroup.cs
- EmptyCollection.cs
- PropertyGridCommands.cs
- DoubleCollectionConverter.cs
- StackSpiller.Bindings.cs
- ConditionCollection.cs
- XPathNode.cs
- DelegateBodyWriter.cs
- DataSourceExpression.cs
- CopyOnWriteList.cs
- VoiceInfo.cs
- DataObjectFieldAttribute.cs
- DataTableNewRowEvent.cs
- EventArgs.cs
- FacetChecker.cs
- ISAPIRuntime.cs
- DirectionalLight.cs
- EventSinkHelperWriter.cs
- EncryptedPackageFilter.cs
- SingleAnimationBase.cs
- CryptoConfig.cs
- ISAPIRuntime.cs
- BuildDependencySet.cs
- DependencyPropertyKey.cs
- Polygon.cs
- UpdatePanelTriggerCollection.cs
- BitmapMetadata.cs
- PropertyRecord.cs
- SqlCaseSimplifier.cs
- FormDesigner.cs
- InvalidPrinterException.cs
- DataGridColumnFloatingHeader.cs
- BoundPropertyEntry.cs
- ProcessProtocolHandler.cs
- StaticResourceExtension.cs
- AutomationIdentifier.cs
- FilterableAttribute.cs
- XamlRtfConverter.cs
- SemanticResultKey.cs
- EncryptedPackageFilter.cs
- Schema.cs
- MailDefinition.cs
- SQLInt64.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- WeakEventManager.cs
- XmlSchemaGroupRef.cs
- HttpModulesSection.cs
- SqlParameterizer.cs
- HandledEventArgs.cs
- PinnedBufferMemoryStream.cs
- ToolstripProfessionalRenderer.cs
- ConfigurationProperty.cs
- DeleteHelper.cs
- WinInetCache.cs
- BaseParser.cs
- Math.cs
- XmlWhitespace.cs
- HierarchicalDataBoundControlAdapter.cs
- StopStoryboard.cs
- DbModificationCommandTree.cs
- ConfigurationLocationCollection.cs
- HttpWebResponse.cs
- KnownColorTable.cs
- propertyentry.cs
- IpcChannel.cs
- TypeName.cs
- WebDescriptionAttribute.cs
- TimeSpanValidator.cs
- CompositionAdorner.cs
- _NegoStream.cs
- SystemFonts.cs
- DelegateSerializationHolder.cs
- PolicyFactory.cs
- FixedPageProcessor.cs
- PeerChannelListener.cs
- DataBoundControlAdapter.cs
- RawStylusInputCustomDataList.cs
- UpdatableWrapper.cs
- FormatConvertedBitmap.cs
- BinaryReader.cs
- TypeToken.cs
- EventItfInfo.cs
- ConfigXmlWhitespace.cs
- ProviderSettings.cs
- COM2ExtendedBrowsingHandler.cs
- GeneralTransformCollection.cs
- ImageList.cs
- StylusPointPropertyInfoDefaults.cs
- CodeDirectiveCollection.cs
- PageBuildProvider.cs
- PageRanges.cs
- WebPartAddingEventArgs.cs
- LowerCaseStringConverter.cs
- StorageFunctionMapping.cs
- Types.cs
- SerializationHelper.cs
- GroupQuery.cs