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
- CachedPathData.cs
- IImplicitResourceProvider.cs
- PopOutPanel.cs
- FormatStringEditor.cs
- XamlParser.cs
- HwndSourceParameters.cs
- WebDescriptionAttribute.cs
- PersonalizationDictionary.cs
- DBParameter.cs
- GeneralTransform3DTo2DTo3D.cs
- mongolianshape.cs
- XpsViewerException.cs
- InteropAutomationProvider.cs
- TreeWalker.cs
- TranslateTransform.cs
- AsyncDataRequest.cs
- InvalidAsynchronousStateException.cs
- SAPICategories.cs
- RegexWorker.cs
- unsafenativemethodsother.cs
- cookieexception.cs
- MoveSizeWinEventHandler.cs
- GridPattern.cs
- PerfCounterSection.cs
- WS2007HttpBindingCollectionElement.cs
- StrokeFIndices.cs
- DoubleIndependentAnimationStorage.cs
- GC.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- HttpRequestBase.cs
- ResXFileRef.cs
- URLString.cs
- DependencyProperty.cs
- UserControlBuildProvider.cs
- XmlJsonWriter.cs
- RenderDataDrawingContext.cs
- SqlCacheDependency.cs
- DocumentViewerConstants.cs
- TransferMode.cs
- connectionpool.cs
- DoubleAverageAggregationOperator.cs
- PageCopyCount.cs
- LambdaCompiler.Unary.cs
- UidPropertyAttribute.cs
- XmlDataLoader.cs
- MenuItemStyleCollection.cs
- WebControlAdapter.cs
- ListCardsInFileRequest.cs
- StackSpiller.Generated.cs
- MethodExecutor.cs
- WorkflowRuntimeBehavior.cs
- XmlAnyElementAttribute.cs
- FixedSOMLineCollection.cs
- MonthChangedEventArgs.cs
- PersonalizationAdministration.cs
- Axis.cs
- CryptoApi.cs
- StickyNote.cs
- SystemPens.cs
- WindowsHyperlink.cs
- HtmlTableCell.cs
- DuplicateDetector.cs
- Stream.cs
- HashAlgorithm.cs
- ComAdminInterfaces.cs
- ManagementClass.cs
- ClaimSet.cs
- PerspectiveCamera.cs
- CreateUserWizardAutoFormat.cs
- DataGridBoolColumn.cs
- RelationshipDetailsRow.cs
- PropertyEmitterBase.cs
- DataGridViewElement.cs
- TokenBasedSetEnumerator.cs
- WebMethodAttribute.cs
- TypeExtensionConverter.cs
- FileDialog_Vista.cs
- XamlRtfConverter.cs
- ToolBarOverflowPanel.cs
- FormsAuthentication.cs
- XmlNodeChangedEventArgs.cs
- DeferredElementTreeState.cs
- CatalogZoneBase.cs
- PartialCachingControl.cs
- Attributes.cs
- StreamWriter.cs
- AssemblySettingAttributes.cs
- Wildcard.cs
- XmlSignatureProperties.cs
- TiffBitmapDecoder.cs
- BrushConverter.cs
- CodeExpressionCollection.cs
- DbMetaDataColumnNames.cs
- ThreadStartException.cs
- OutputCacheEntry.cs
- ContractCodeDomInfo.cs
- latinshape.cs
- UseAttributeSetsAction.cs
- TextFormatter.cs
- WebPartDeleteVerb.cs