Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlMeta.cs / 1 / 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)) ] [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] 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)) ] [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] 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
- PackWebRequestFactory.cs
- WebPartDisplayMode.cs
- WebConfigurationFileMap.cs
- GeneralTransform.cs
- Tag.cs
- ReadingWritingEntityEventArgs.cs
- CompositeKey.cs
- TemplateContainer.cs
- DPTypeDescriptorContext.cs
- MarkupProperty.cs
- NetworkCredential.cs
- HtmlTableRowCollection.cs
- FormViewModeEventArgs.cs
- GPPOINT.cs
- PersistChildrenAttribute.cs
- StoryFragments.cs
- MultitargetingHelpers.cs
- InstanceDataCollection.cs
- KeyValueConfigurationCollection.cs
- FileStream.cs
- PackWebRequestFactory.cs
- RenderContext.cs
- StdValidatorsAndConverters.cs
- ProfilePropertyMetadata.cs
- Properties.cs
- CollectionContainer.cs
- GridLengthConverter.cs
- TypedElement.cs
- MetaTableHelper.cs
- PanelDesigner.cs
- WindowsScrollBarBits.cs
- ProcessThread.cs
- ResXBuildProvider.cs
- DockPatternIdentifiers.cs
- ColorMap.cs
- EntityDescriptor.cs
- Viewport2DVisual3D.cs
- TableItemPatternIdentifiers.cs
- EdmItemCollection.OcAssemblyCache.cs
- ReceiveMessageContent.cs
- MemberPath.cs
- FunctionCommandText.cs
- VariantWrapper.cs
- DataGridViewCheckBoxColumn.cs
- BuilderElements.cs
- TaskFileService.cs
- ValidationManager.cs
- SQLBinaryStorage.cs
- NameValueFileSectionHandler.cs
- DispatcherTimer.cs
- ChangeNode.cs
- Cursor.cs
- ParseElementCollection.cs
- TerminatorSinks.cs
- GC.cs
- FontStretchConverter.cs
- InfocardChannelParameter.cs
- SchemaComplexType.cs
- LZCodec.cs
- ListBoxChrome.cs
- ImplicitInputBrush.cs
- DataGridViewCellStyleConverter.cs
- DataGridViewComboBoxColumn.cs
- BackgroundWorker.cs
- ResolvedKeyFrameEntry.cs
- SafeBitVector32.cs
- HttpServerUtilityBase.cs
- StackOverflowException.cs
- ThemeableAttribute.cs
- WorkflowWebHostingModule.cs
- Buffer.cs
- DbModificationCommandTree.cs
- SessionStateModule.cs
- DelayDesigner.cs
- TimeSpanFormat.cs
- CfgRule.cs
- ReadOnlyNameValueCollection.cs
- ValidationErrorInfo.cs
- ObjectConverter.cs
- TableParaClient.cs
- ResourceDescriptionAttribute.cs
- ToolBarDesigner.cs
- BitmapEffectState.cs
- TrustManager.cs
- QuaternionConverter.cs
- Types.cs
- LZCodec.cs
- SqlNamer.cs
- SHA1.cs
- IndexedWhereQueryOperator.cs
- LicenseProviderAttribute.cs
- XmlArrayAttribute.cs
- PolyQuadraticBezierSegment.cs
- HttpWebRequestElement.cs
- DataGridViewSelectedColumnCollection.cs
- WindowsScrollBarBits.cs
- BindingSource.cs
- ErrorWrapper.cs
- String.cs
- _ListenerAsyncResult.cs