Code:
/ DotNET / DotNET / 8.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
- HitTestParameters3D.cs
- UrlPath.cs
- XmlQualifiedNameTest.cs
- TypeHelper.cs
- CompositeDispatchFormatter.cs
- DesignerRegionCollection.cs
- XmlCharCheckingReader.cs
- SoapServerProtocol.cs
- SqlUDTStorage.cs
- XmlSchemaComplexContent.cs
- SafeIUnknown.cs
- ACE.cs
- dbdatarecord.cs
- NavigationCommands.cs
- CodeExpressionStatement.cs
- FamilyMapCollection.cs
- TimersDescriptionAttribute.cs
- CanonicalFontFamilyReference.cs
- TypeDelegator.cs
- BitmapVisualManager.cs
- BooleanAnimationBase.cs
- TypeDelegator.cs
- QueryOperator.cs
- CoTaskMemHandle.cs
- datacache.cs
- RandomNumberGenerator.cs
- DiagnosticsConfigurationHandler.cs
- PropertyChangedEventManager.cs
- AppliedDeviceFiltersDialog.cs
- COM2PropertyBuilderUITypeEditor.cs
- Itemizer.cs
- RegionIterator.cs
- XhtmlBasicControlAdapter.cs
- ColumnHeaderConverter.cs
- CommandConverter.cs
- RegularExpressionValidator.cs
- JoinSymbol.cs
- WebPartDisplayModeCollection.cs
- TextPointerBase.cs
- FormViewInsertedEventArgs.cs
- SourceElementsCollection.cs
- FilterQuery.cs
- XmlLoader.cs
- FactoryGenerator.cs
- FontStretchConverter.cs
- TypeReference.cs
- prefixendpointaddressmessagefiltertable.cs
- CheckBoxField.cs
- DataServiceKeyAttribute.cs
- SQLGuid.cs
- FlowDocumentPageViewerAutomationPeer.cs
- RoleService.cs
- AuthenticationModulesSection.cs
- InstanceHandle.cs
- AutomationProperties.cs
- WebContext.cs
- ComponentChangedEvent.cs
- KnownAssembliesSet.cs
- ScrollChrome.cs
- Int32AnimationUsingKeyFrames.cs
- RemoteWebConfigurationHostServer.cs
- HttpBrowserCapabilitiesWrapper.cs
- glyphs.cs
- GenericTextProperties.cs
- AnnotationComponentManager.cs
- SynchronizationLockException.cs
- XPathDocument.cs
- ResourceContainer.cs
- SystemUdpStatistics.cs
- GenericUriParser.cs
- KeyConverter.cs
- ByteAnimationBase.cs
- QueryCacheEntry.cs
- AdPostCacheSubstitution.cs
- TypeHelper.cs
- COMException.cs
- NewExpression.cs
- HasCopySemanticsAttribute.cs
- BaseInfoTable.cs
- SBCSCodePageEncoding.cs
- CacheDependency.cs
- NoneExcludedImageIndexConverter.cs
- PartitionResolver.cs
- Reference.cs
- ParamArrayAttribute.cs
- AssemblyBuilderData.cs
- ConvertTextFrag.cs
- DataShape.cs
- ReflectPropertyDescriptor.cs
- LogicalCallContext.cs
- OdbcCommand.cs
- XamlClipboardData.cs
- WindowsPrincipal.cs
- HttpListenerRequestTraceRecord.cs
- AspProxy.cs
- TableItemStyle.cs
- DataBindingCollectionConverter.cs
- Point3D.cs
- TypeUtil.cs
- OleDbParameterCollection.cs