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
- Msmq.cs
- VarRefManager.cs
- SpeechSynthesizer.cs
- _NegoStream.cs
- BitmapSizeOptions.cs
- ActiveXMessageFormatter.cs
- TargetControlTypeCache.cs
- Path.cs
- WaitHandle.cs
- InputBuffer.cs
- SettingsBindableAttribute.cs
- DbBuffer.cs
- OdbcConnectionStringbuilder.cs
- DoubleLinkListEnumerator.cs
- SelectionRange.cs
- MsmqTransportSecurityElement.cs
- RectangleConverter.cs
- ExpandSegment.cs
- TextBox.cs
- DataGridrowEditEndingEventArgs.cs
- AmbientEnvironment.cs
- TabControl.cs
- VScrollProperties.cs
- GridViewRowPresenter.cs
- Panel.cs
- Fx.cs
- printdlgexmarshaler.cs
- SqlProviderManifest.cs
- ExceptionHelpers.cs
- ContentHostHelper.cs
- Graph.cs
- FrameworkElementFactory.cs
- DebuggerAttributes.cs
- DataGridViewComboBoxColumn.cs
- PersianCalendar.cs
- ConditionalDesigner.cs
- TreeIterator.cs
- WriteTimeStream.cs
- ProfessionalColorTable.cs
- StringAnimationBase.cs
- NamespaceQuery.cs
- BinaryFormatterSinks.cs
- ToolStripDropTargetManager.cs
- Point.cs
- SerializerWriterEventHandlers.cs
- DbConnectionOptions.cs
- XPathQueryGenerator.cs
- MenuItemStyle.cs
- DetailsViewInsertEventArgs.cs
- EpmContentDeSerializer.cs
- SerialStream.cs
- SqlConnectionPoolProviderInfo.cs
- PrimitiveXmlSerializers.cs
- NativeMethods.cs
- BamlTreeUpdater.cs
- InOutArgumentConverter.cs
- MulticastIPAddressInformationCollection.cs
- SimpleTypeResolver.cs
- CustomErrorsSectionWrapper.cs
- Drawing.cs
- PhysicalAddress.cs
- ColumnMap.cs
- MediaCommands.cs
- DispatcherHookEventArgs.cs
- PickBranch.cs
- SignatureConfirmations.cs
- SingleAnimation.cs
- HttpCapabilitiesEvaluator.cs
- XmlWriter.cs
- AgileSafeNativeMemoryHandle.cs
- CorruptingExceptionCommon.cs
- TrackPoint.cs
- DataColumnMapping.cs
- UIElementHelper.cs
- PenLineJoinValidation.cs
- SourceFileBuildProvider.cs
- Misc.cs
- Listbox.cs
- CommandEventArgs.cs
- EventMappingSettings.cs
- OleDbReferenceCollection.cs
- UserControl.cs
- PeerNameResolver.cs
- CacheDependency.cs
- ImageListUtils.cs
- XmlSchemaValidationException.cs
- StringBuilder.cs
- EnlistmentState.cs
- XmlSchemaGroupRef.cs
- TextServicesCompartment.cs
- SapiRecoContext.cs
- sortedlist.cs
- EntityCommandExecutionException.cs
- ParameterDataSourceExpression.cs
- SmtpException.cs
- XmlUtf8RawTextWriter.cs
- SQLSingle.cs
- MetadataItemCollectionFactory.cs
- XmlChoiceIdentifierAttribute.cs
- DependencySource.cs