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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Transform3DGroup.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- StringFunctions.cs
- CustomErrorCollection.cs
- SqlCrossApplyToCrossJoin.cs
- SqlEnums.cs
- GenericUI.cs
- GetWorkflowTree.cs
- ListViewDataItem.cs
- TransportChannelFactory.cs
- TypeNameConverter.cs
- GradientStop.cs
- ServicePointManagerElement.cs
- XmlSignatureProperties.cs
- ThaiBuddhistCalendar.cs
- BasePattern.cs
- DesignTimeValidationFeature.cs
- ArglessEventHandlerProxy.cs
- PropertyGridEditorPart.cs
- NameValueConfigurationElement.cs
- Int16Converter.cs
- ExceptionHandler.cs
- _BufferOffsetSize.cs
- ParserHooks.cs
- FixedSOMElement.cs
- EncoderExceptionFallback.cs
- Flowchart.cs
- TimelineCollection.cs
- TreeNodeStyleCollection.cs
- RootBuilder.cs
- Console.cs
- OperandQuery.cs
- UIElementPropertyUndoUnit.cs
- KoreanCalendar.cs
- Oid.cs
- DelegatedStream.cs
- BindingCollection.cs
- FileLevelControlBuilderAttribute.cs
- DynamicScriptObject.cs
- EmulateRecognizeCompletedEventArgs.cs
- _ConnectStream.cs
- InvalidDataException.cs
- AnimationLayer.cs
- OverflowException.cs
- XmlSchemaSet.cs
- ObjectManager.cs
- _RequestCacheProtocol.cs
- DebugView.cs
- FlowDocumentReader.cs
- SymLanguageType.cs
- AnchoredBlock.cs
- DrawingImage.cs
- HtmlProps.cs
- EncryptedType.cs
- ClientOptions.cs
- SqlParameterizer.cs
- ConfigXmlComment.cs
- StretchValidation.cs
- Config.cs
- CodeTypeDelegate.cs
- XMLUtil.cs
- BoundColumn.cs
- OracleBoolean.cs
- SiteMapNode.cs
- MatrixAnimationUsingPath.cs
- ExtendedPropertyCollection.cs
- DataServiceClientException.cs
- SafeNativeMethodsOther.cs
- FreezableOperations.cs
- InitializerFacet.cs
- TransportManager.cs
- ContextStack.cs
- ScrollChrome.cs
- TemplatedWizardStep.cs
- CodePageUtils.cs
- TransactionScopeDesigner.cs
- AnnotationAuthorChangedEventArgs.cs
- MessageAction.cs
- CodeEntryPointMethod.cs
- ActivityCodeGenerator.cs
- DocumentScope.cs
- XmlNavigatorFilter.cs
- StylusDownEventArgs.cs
- KeyedHashAlgorithm.cs
- SchemaNames.cs
- BreakRecordTable.cs
- RoleGroup.cs
- RelatedCurrencyManager.cs
- CreateUserWizard.cs
- HtmlTableRow.cs
- XmlMembersMapping.cs
- ProfileGroupSettings.cs
- SqlErrorCollection.cs
- String.cs
- WindowsHyperlink.cs
- NativeCompoundFileAPIs.cs
- CodeExporter.cs
- UIElement3D.cs
- SqlTypeConverter.cs
- BasicViewGenerator.cs