Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. 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(); } } } // 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
- WorkflowMarkupSerializerMapping.cs
- DesigntimeLicenseContextSerializer.cs
- ScriptControlDescriptor.cs
- ThaiBuddhistCalendar.cs
- InvalidWMPVersionException.cs
- CodeMethodInvokeExpression.cs
- FloatUtil.cs
- HtmlInputPassword.cs
- DES.cs
- DataObjectAttribute.cs
- TypeBrowser.xaml.cs
- HtmlButton.cs
- Visual3D.cs
- OleDbWrapper.cs
- DataKeyArray.cs
- WebConfigurationHostFileChange.cs
- QuotedPrintableStream.cs
- KeyFrames.cs
- DesignTimeVisibleAttribute.cs
- ExecutionContext.cs
- EdmTypeAttribute.cs
- ScriptIgnoreAttribute.cs
- EdmItemError.cs
- IUnknownConstantAttribute.cs
- IDQuery.cs
- Fonts.cs
- LazyTextWriterCreator.cs
- FormatterConverter.cs
- ToolStripOverflow.cs
- TypeForwardedToAttribute.cs
- AccessibleObject.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- StringUtil.cs
- MappedMetaModel.cs
- EntityStoreSchemaGenerator.cs
- NodeFunctions.cs
- OuterProxyWrapper.cs
- XpsS0ValidatingLoader.cs
- ImageCodecInfo.cs
- BigInt.cs
- RuleDefinitions.cs
- AssemblyResourceLoader.cs
- SQLInt32.cs
- MouseButton.cs
- ZipPackagePart.cs
- EdmType.cs
- XamlSerializationHelper.cs
- hwndwrapper.cs
- FieldAccessException.cs
- FormatConvertedBitmap.cs
- FilterEventArgs.cs
- PropertyEmitterBase.cs
- XmlReflectionImporter.cs
- MergablePropertyAttribute.cs
- SymLanguageType.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ListViewGroupConverter.cs
- StylusButtonCollection.cs
- XmlNamespaceManager.cs
- DeferredSelectedIndexReference.cs
- PaintEvent.cs
- SchemaAttDef.cs
- StringCollectionMarkupSerializer.cs
- DbCommandDefinition.cs
- SplitterCancelEvent.cs
- CodeDOMProvider.cs
- HtmlTable.cs
- VoiceObjectToken.cs
- MasterPageBuildProvider.cs
- FieldMetadata.cs
- XmlTextEncoder.cs
- TitleStyle.cs
- ActivityFunc.cs
- TypeReference.cs
- ConnectionProviderAttribute.cs
- ListItemsPage.cs
- Trigger.cs
- PageAsyncTaskManager.cs
- SqlDataSourceEnumerator.cs
- MatchingStyle.cs
- LogLogRecordHeader.cs
- StylusButtonCollection.cs
- XPathNodeInfoAtom.cs
- SurrogateSelector.cs
- ReceiveReply.cs
- DbTransaction.cs
- HttpRuntimeSection.cs
- Partitioner.cs
- XPathSelectionIterator.cs
- ProfessionalColors.cs
- DateTimeOffsetAdapter.cs
- x509store.cs
- Header.cs
- BookmarkNameHelper.cs
- Reference.cs
- LayoutDump.cs
- KeyValuePair.cs
- JobStaple.cs
- TabItem.cs
- SqlDuplicator.cs