Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HostingPreferredMapPath.cs
- updateconfighost.cs
- ProviderBase.cs
- DynamicDataRoute.cs
- CodeDomLoader.cs
- IdentityModelDictionary.cs
- ClientType.cs
- UpDownEvent.cs
- TreeWalkHelper.cs
- LongTypeConverter.cs
- ToolStripDropDownMenu.cs
- UserControlBuildProvider.cs
- ContextMenu.cs
- LingerOption.cs
- TraceContextRecord.cs
- StrongNameKeyPair.cs
- XmlSchemaRedefine.cs
- DbExpressionVisitor_TResultType.cs
- GuidConverter.cs
- ReadWriteSpinLock.cs
- ChtmlMobileTextWriter.cs
- PeerNameRecordCollection.cs
- ReferenceConverter.cs
- SupportingTokenBindingElement.cs
- OdbcEnvironment.cs
- BasicExpandProvider.cs
- Queue.cs
- DoubleCollectionConverter.cs
- Point4DValueSerializer.cs
- TreeNodeEventArgs.cs
- ViewStateException.cs
- SystemIPGlobalStatistics.cs
- Matrix3DConverter.cs
- GridViewRowPresenterBase.cs
- ErrorFormatter.cs
- RequestCachingSection.cs
- SoapSchemaMember.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- ProfileServiceManager.cs
- WebServiceClientProxyGenerator.cs
- KnownBoxes.cs
- PrintPreviewControl.cs
- VersionValidator.cs
- ServiceInfo.cs
- InheritanceContextChangedEventManager.cs
- ColumnCollection.cs
- GroupBox.cs
- SystemIcons.cs
- OleDbSchemaGuid.cs
- StylusSystemGestureEventArgs.cs
- RoutedEvent.cs
- CAGDesigner.cs
- ContentPosition.cs
- TypedTableHandler.cs
- EntityDataSourceContextDisposingEventArgs.cs
- CardSpaceException.cs
- autovalidator.cs
- ItemsPanelTemplate.cs
- AssemblyBuilder.cs
- SocketAddress.cs
- GeneralTransform3D.cs
- SchemaNamespaceManager.cs
- SafeRightsManagementSessionHandle.cs
- WindowsEditBoxRange.cs
- DataSourceHelper.cs
- RectKeyFrameCollection.cs
- PointValueSerializer.cs
- MDIWindowDialog.cs
- MetadataArtifactLoaderCompositeFile.cs
- Content.cs
- PathData.cs
- EmulateRecognizeCompletedEventArgs.cs
- CodeLinePragma.cs
- MsmqIntegrationBindingCollectionElement.cs
- DbParameterHelper.cs
- XmlSchemaNotation.cs
- Button.cs
- BadImageFormatException.cs
- Context.cs
- ping.cs
- BindingsCollection.cs
- OutputCacheSection.cs
- AuthenticationServiceManager.cs
- LogExtentCollection.cs
- Char.cs
- JavaScriptString.cs
- ProcessModuleCollection.cs
- Pen.cs
- CollectionBuilder.cs
- XhtmlMobileTextWriter.cs
- XPathNavigator.cs
- PrintController.cs
- MediaElement.cs
- IDQuery.cs
- BitmapEffectDrawing.cs
- mediaclock.cs
- PageBuildProvider.cs
- EnumValidator.cs
- DbFunctionCommandTree.cs
- LoginView.cs