Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExpressionPrefixAttribute.cs
- SafeBitVector32.cs
- EntityRecordInfo.cs
- MenuTracker.cs
- EventLogPermissionEntryCollection.cs
- TextSelectionHelper.cs
- EncoderBestFitFallback.cs
- XsdValidatingReader.cs
- Point3DCollectionValueSerializer.cs
- MaterializeFromAtom.cs
- RuntimeArgumentHandle.cs
- SystemFonts.cs
- ObjectViewFactory.cs
- ListViewSortEventArgs.cs
- UnsafeNativeMethods.cs
- MenuItemStyle.cs
- ErrorStyle.cs
- QilNode.cs
- CultureInfo.cs
- LambdaExpression.cs
- Geometry.cs
- DateTime.cs
- CryptoApi.cs
- DataControlButton.cs
- VisualBrush.cs
- DirectoryGroupQuery.cs
- TypeToArgumentTypeConverter.cs
- WinCategoryAttribute.cs
- AxisAngleRotation3D.cs
- TextBoxBaseDesigner.cs
- DoubleUtil.cs
- IProvider.cs
- BatchServiceHost.cs
- EntityDataSourceDesigner.cs
- Models.cs
- SqlConnectionHelper.cs
- HtmlElementErrorEventArgs.cs
- BridgeDataRecord.cs
- CompoundFileStorageReference.cs
- CellNormalizer.cs
- SemanticValue.cs
- BuildProviderAppliesToAttribute.cs
- MappingItemCollection.cs
- BamlBinaryReader.cs
- _ContextAwareResult.cs
- SqlServer2KCompatibilityAnnotation.cs
- DomNameTable.cs
- HTMLTagNameToTypeMapper.cs
- RegexStringValidator.cs
- COM2ExtendedUITypeEditor.cs
- InkCanvasFeedbackAdorner.cs
- GPPOINTF.cs
- SafeRegistryHandle.cs
- LambdaCompiler.Statements.cs
- Coordinator.cs
- RoutedEventConverter.cs
- CharacterString.cs
- SymLanguageType.cs
- OperationPerformanceCounters.cs
- Rules.cs
- DisposableCollectionWrapper.cs
- Policy.cs
- ValueSerializer.cs
- DependencyPropertyHelper.cs
- OdbcFactory.cs
- NameNode.cs
- BindUriHelper.cs
- FileDialog_Vista.cs
- MiniMapControl.xaml.cs
- SQLCharsStorage.cs
- FormCollection.cs
- CommandID.cs
- SQLCharsStorage.cs
- PixelFormatConverter.cs
- DataSourceHelper.cs
- DoWhile.cs
- TypeUtil.cs
- XmlDocumentSchema.cs
- NativeRecognizer.cs
- TransportConfigurationTypeElementCollection.cs
- DirtyTextRange.cs
- ServiceParser.cs
- SerializationTrace.cs
- HtmlControl.cs
- CustomAttribute.cs
- DoubleCollection.cs
- ExtendedPropertyInfo.cs
- ChannelDispatcher.cs
- PaperSize.cs
- ElementNotEnabledException.cs
- unsafenativemethodstextservices.cs
- Win32PrintDialog.cs
- DeclarationUpdate.cs
- BinaryNode.cs
- IncomingWebRequestContext.cs
- DBCommandBuilder.cs
- TextContainerChangeEventArgs.cs
- QueryExtender.cs
- ListViewItemCollectionEditor.cs
- LinqDataSourceSelectEventArgs.cs