Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlMeta.cs / 1305376 / HtmlMeta.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.HtmlControls { using System; using System.Security; using System.Security.Permissions; using System.ComponentModel; [ ControlBuilderAttribute(typeof(HtmlEmptyTagControlBuilder)) ] public class HtmlMeta : HtmlControl { public HtmlMeta() : base("meta") { } [ WebCategory("Appearance"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), ] public virtual string Content { get { string s = Attributes["content"]; return ((s != null) ? s : String.Empty); } set { Attributes["content"] = MapStringAttributeToString(value); } } [ WebCategory("Appearance"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), ] public virtual string HttpEquiv { get { string s = Attributes["http-equiv"]; return ((s != null) ? s : String.Empty); } set { Attributes["http-equiv"] = MapStringAttributeToString(value); } } [ WebCategory("Appearance"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), ] public virtual string Name { get { string s = Attributes["name"]; return ((s != null) ? s : String.Empty); } set { Attributes["name"] = MapStringAttributeToString(value); } } [ WebCategory("Appearance"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), ] public virtual string Scheme { get { string s = Attributes["scheme"]; return ((s != null) ? s : String.Empty); } set { Attributes["scheme"] = MapStringAttributeToString(value); } } protected internal override void Render(HtmlTextWriter writer) { if (EnableLegacyRendering) { base.Render(writer); } else { // By default HTMLControl doesn't render a closing /> so its not XHTML compliance writer.WriteBeginTag(TagName); RenderAttributes(writer); writer.Write(HtmlTextWriter.SelfClosingTagEnd); } } } } // 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.Security; using System.Security.Permissions; using System.ComponentModel; [ ControlBuilderAttribute(typeof(HtmlEmptyTagControlBuilder)) ] public class HtmlMeta : HtmlControl { public HtmlMeta() : base("meta") { } [ WebCategory("Appearance"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), ] public virtual string Content { get { string s = Attributes["content"]; return ((s != null) ? s : String.Empty); } set { Attributes["content"] = MapStringAttributeToString(value); } } [ WebCategory("Appearance"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), ] public virtual string HttpEquiv { get { string s = Attributes["http-equiv"]; return ((s != null) ? s : String.Empty); } set { Attributes["http-equiv"] = MapStringAttributeToString(value); } } [ WebCategory("Appearance"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), ] public virtual string Name { get { string s = Attributes["name"]; return ((s != null) ? s : String.Empty); } set { Attributes["name"] = MapStringAttributeToString(value); } } [ WebCategory("Appearance"), DefaultValue(""), DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden), ] public virtual string Scheme { get { string s = Attributes["scheme"]; return ((s != null) ? s : String.Empty); } set { Attributes["scheme"] = MapStringAttributeToString(value); } } protected internal override void Render(HtmlTextWriter writer) { if (EnableLegacyRendering) { base.Render(writer); } else { // By default HTMLControl doesn't render a closing /> so its not XHTML compliance writer.WriteBeginTag(TagName); RenderAttributes(writer); writer.Write(HtmlTextWriter.SelfClosingTagEnd); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ItemCollection.cs
- AsyncCodeActivityContext.cs
- XmlQueryStaticData.cs
- CodeArrayCreateExpression.cs
- PropertyGeneratedEventArgs.cs
- ColorContext.cs
- SafeFindHandle.cs
- CodeSnippetExpression.cs
- DataGridTextBoxColumn.cs
- DictationGrammar.cs
- RelationshipSet.cs
- EventMemberCodeDomSerializer.cs
- PageContentCollection.cs
- ScriptResourceHandler.cs
- XomlCompilerError.cs
- ConfigurationValue.cs
- DefaultTextStore.cs
- HybridObjectCache.cs
- CodeEventReferenceExpression.cs
- URL.cs
- CompareInfo.cs
- SafeLibraryHandle.cs
- InvalidEnumArgumentException.cs
- lengthconverter.cs
- PassportAuthenticationModule.cs
- SmtpNtlmAuthenticationModule.cs
- SafeProcessHandle.cs
- SoapHeaderException.cs
- CollectionChangeEventArgs.cs
- PerfCounterSection.cs
- EndOfStreamException.cs
- TextBoxBase.cs
- SinglePhaseEnlistment.cs
- DirectionalLight.cs
- IteratorFilter.cs
- WebColorConverter.cs
- EventEntry.cs
- OdbcConnection.cs
- Geometry.cs
- KeyedCollection.cs
- SmiEventStream.cs
- TabItemAutomationPeer.cs
- XmlStreamStore.cs
- DesignerHelpers.cs
- PersonalizableAttribute.cs
- DataObjectMethodAttribute.cs
- CombinedTcpChannel.cs
- ValueExpressions.cs
- SmtpTransport.cs
- ApplicationSecurityInfo.cs
- DrawingBrush.cs
- ObjectToken.cs
- TraceHandlerErrorFormatter.cs
- Rights.cs
- XpsS0ValidatingLoader.cs
- ISAPIApplicationHost.cs
- GridEntry.cs
- PriorityBindingExpression.cs
- ArrayMergeHelper.cs
- FixedSOMPageElement.cs
- ContextMenu.cs
- ParentUndoUnit.cs
- TransactionalPackage.cs
- ZipIOLocalFileBlock.cs
- BinaryObjectWriter.cs
- DbMetaDataFactory.cs
- DropShadowEffect.cs
- EndEvent.cs
- Main.cs
- Merger.cs
- SerializationFieldInfo.cs
- WmfPlaceableFileHeader.cs
- SkinBuilder.cs
- SchemaImporterExtensionElement.cs
- Int32CollectionConverter.cs
- VariantWrapper.cs
- CFStream.cs
- GeneralTransformGroup.cs
- Column.cs
- XhtmlBasicSelectionListAdapter.cs
- BufferBuilder.cs
- SettingsAttributeDictionary.cs
- OleDbStruct.cs
- XmlRawWriter.cs
- Stroke2.cs
- DataGridTemplateColumn.cs
- NumberFunctions.cs
- CanExecuteRoutedEventArgs.cs
- FileDetails.cs
- UIElement.cs
- PackWebResponse.cs
- MTConfigUtil.cs
- MetadataFile.cs
- TabControlEvent.cs
- XmlLanguageConverter.cs
- AnimatedTypeHelpers.cs
- InputProcessorProfiles.cs
- _OSSOCK.cs
- ObjectListGeneralPage.cs
- CodeTypeReferenceCollection.cs