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
- ValueConversionAttribute.cs
- OpenFileDialog.cs
- OrderablePartitioner.cs
- DataMemberAttribute.cs
- FormsAuthenticationUserCollection.cs
- PartitionedDataSource.cs
- EventBuilder.cs
- UshortList2.cs
- WinEventWrap.cs
- Schema.cs
- NonSerializedAttribute.cs
- WorkflowEventArgs.cs
- DbProviderSpecificTypePropertyAttribute.cs
- RenderTargetBitmap.cs
- TrailingSpaceComparer.cs
- ListViewUpdatedEventArgs.cs
- DiffuseMaterial.cs
- BindingElementExtensionElement.cs
- JumpTask.cs
- NavigationWindowAutomationPeer.cs
- ObjectConverter.cs
- MenuTracker.cs
- CachedBitmap.cs
- RouteValueExpressionBuilder.cs
- XPathAxisIterator.cs
- SqlWebEventProvider.cs
- ActivityExecutionWorkItem.cs
- RubberbandSelector.cs
- HMACSHA384.cs
- RoutedEvent.cs
- SoapObjectReader.cs
- webbrowsersite.cs
- HighContrastHelper.cs
- MsmqChannelFactory.cs
- counter.cs
- ResourceExpressionBuilder.cs
- TemplateBindingExpressionConverter.cs
- BindingSource.cs
- ImageDrawing.cs
- VisualBasicSettingsHandler.cs
- Content.cs
- SplineKeyFrames.cs
- SmtpReplyReaderFactory.cs
- wgx_commands.cs
- PeerTransportCredentialType.cs
- RSAPKCS1SignatureFormatter.cs
- FeatureSupport.cs
- Automation.cs
- Pair.cs
- DataTableTypeConverter.cs
- PenThreadPool.cs
- SettingsContext.cs
- AuthenticationService.cs
- odbcmetadatacolumnnames.cs
- ServiceConfigurationTraceRecord.cs
- Command.cs
- Debug.cs
- parserscommon.cs
- EventEntry.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- Comparer.cs
- Validator.cs
- AsyncInvokeContext.cs
- ServicePrincipalNameElement.cs
- SimpleHandlerBuildProvider.cs
- ListViewUpdatedEventArgs.cs
- WorkflowPrinting.cs
- ZoneIdentityPermission.cs
- RenderCapability.cs
- MenuCommands.cs
- PublisherMembershipCondition.cs
- SafeSecurityHelper.cs
- AppDomain.cs
- SoapAttributeAttribute.cs
- PartialCachingAttribute.cs
- CustomError.cs
- BuildProviderAppliesToAttribute.cs
- ObjectDataSourceView.cs
- XmlReturnReader.cs
- IdnMapping.cs
- NumberSubstitution.cs
- ValidationSummary.cs
- ContextActivityUtils.cs
- SqlParameterizer.cs
- DataSourceControl.cs
- DefaultTraceListener.cs
- shaper.cs
- StructuredTypeInfo.cs
- DataSourceView.cs
- ObjectQueryExecutionPlan.cs
- SafeRegistryHandle.cs
- RawStylusInput.cs
- Vector3DConverter.cs
- XmlDataLoader.cs
- MarkupCompilePass2.cs
- SystemIPAddressInformation.cs
- CreateUserWizardStep.cs
- CompressedStack.cs
- StringFreezingAttribute.cs
- SqlSelectStatement.cs