Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- Workspace.cs
- WorkflowServiceOperationListItem.cs
- ConnectivityStatus.cs
- WebResourceAttribute.cs
- DataObjectEventArgs.cs
- SQLStringStorage.cs
- _HTTPDateParse.cs
- ImageMetadata.cs
- LineInfo.cs
- WebResponse.cs
- Directory.cs
- SerializationFieldInfo.cs
- NonDualMessageSecurityOverHttp.cs
- DiscoveryClientRequestChannel.cs
- DataRow.cs
- SignedPkcs7.cs
- VisualStyleRenderer.cs
- RoleGroupCollection.cs
- Int32AnimationUsingKeyFrames.cs
- FormViewUpdatedEventArgs.cs
- Composition.cs
- DataGridColumn.cs
- ProfileInfo.cs
- AuthenticateEventArgs.cs
- SurrogateSelector.cs
- SelectionProcessor.cs
- AvTraceFormat.cs
- DuplexChannelBinder.cs
- Type.cs
- QueryOutputWriterV1.cs
- SafeLibraryHandle.cs
- TransformerConfigurationWizardBase.cs
- QilBinary.cs
- EntityType.cs
- SourceFilter.cs
- MessageUtil.cs
- RepeaterItemCollection.cs
- formatter.cs
- CollectionContainer.cs
- SoapAttributeAttribute.cs
- ArgumentValueSerializer.cs
- OdbcStatementHandle.cs
- SizeF.cs
- PathTooLongException.cs
- UrlRoutingHandler.cs
- FormatControl.cs
- ReadOnlyTernaryTree.cs
- Line.cs
- ContainerUtilities.cs
- ScalarOps.cs
- StructuredTypeEmitter.cs
- HttpResponse.cs
- EpmSyndicationContentSerializer.cs
- TemplateControlCodeDomTreeGenerator.cs
- ImageCodecInfo.cs
- ColorPalette.cs
- FlowchartSizeFeature.cs
- HttpServerUtilityWrapper.cs
- UIElement3D.cs
- ExpressionBuilderCollection.cs
- LinkLabelLinkClickedEvent.cs
- NetCodeGroup.cs
- MenuCommandService.cs
- ListViewItemSelectionChangedEvent.cs
- TypedReference.cs
- BrowserTree.cs
- StoreItemCollection.cs
- ErrorWrapper.cs
- RelationshipNavigation.cs
- ProcessHostFactoryHelper.cs
- EditorAttribute.cs
- InteropBitmapSource.cs
- RootCodeDomSerializer.cs
- MonthChangedEventArgs.cs
- MaskInputRejectedEventArgs.cs
- DesignerCategoryAttribute.cs
- PixelFormat.cs
- ActivityExecutionFilter.cs
- ExpressionEditorSheet.cs
- IndependentlyAnimatedPropertyMetadata.cs
- FrameworkElementFactoryMarkupObject.cs
- ListBox.cs
- BamlRecordReader.cs
- ButtonBaseAutomationPeer.cs
- DiscoveryVersionConverter.cs
- ListSortDescription.cs
- GroupBoxRenderer.cs
- SelectionService.cs
- MulticastNotSupportedException.cs
- EdmValidator.cs
- MDIClient.cs
- ToolStripContentPanelRenderEventArgs.cs
- DataProtection.cs
- BinaryReader.cs
- PointAnimationClockResource.cs
- SqlUserDefinedAggregateAttribute.cs
- ToolStripPanelRenderEventArgs.cs
- Util.cs
- ToggleButtonAutomationPeer.cs
- ConfigurationException.cs