Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlMeta.cs / 1305376 / 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)) ] 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FrameworkPropertyMetadata.cs
- IpcServerChannel.cs
- NullableFloatAverageAggregationOperator.cs
- LinkLabel.cs
- DynamicPhysicalDiscoSearcher.cs
- Subset.cs
- AlphabetConverter.cs
- __Filters.cs
- PageParser.cs
- ToolTipService.cs
- SimplePropertyEntry.cs
- SingleSelectRootGridEntry.cs
- MetabaseSettings.cs
- CodeIdentifiers.cs
- DefaultWorkflowSchedulerService.cs
- UpdateProgress.cs
- SQLDecimal.cs
- CaseStatementSlot.cs
- BaseParagraph.cs
- ProcessThread.cs
- XmlAnyElementAttribute.cs
- DateTimeFormat.cs
- ObjectDataSourceStatusEventArgs.cs
- COM2EnumConverter.cs
- WorkflowMarkupSerializationException.cs
- SHA1CryptoServiceProvider.cs
- XPathDocument.cs
- ByteStreamGeometryContext.cs
- HandlerMappingMemo.cs
- SamlAuthorityBinding.cs
- OrderingExpression.cs
- CellTreeNodeVisitors.cs
- InputScopeConverter.cs
- HttpDebugHandler.cs
- SettingsPropertyCollection.cs
- GridViewEditEventArgs.cs
- ExternalFile.cs
- SqlConnectionPoolGroupProviderInfo.cs
- BitFlagsGenerator.cs
- DependencyObject.cs
- LinkButton.cs
- PostBackOptions.cs
- BeginStoryboard.cs
- WebPartMenuStyle.cs
- UidPropertyAttribute.cs
- XmlSchemaObject.cs
- IsolatedStorageFilePermission.cs
- WindowsFormsHostAutomationPeer.cs
- KnownColorTable.cs
- IfAction.cs
- ValidatorCollection.cs
- SwitchLevelAttribute.cs
- CommandID.cs
- Helpers.cs
- RootBrowserWindowProxy.cs
- MetaColumn.cs
- MachineKeyConverter.cs
- EnumerableCollectionView.cs
- Debug.cs
- IdnMapping.cs
- LinqDataSourceStatusEventArgs.cs
- CollectionType.cs
- RSAPKCS1KeyExchangeFormatter.cs
- HealthMonitoringSection.cs
- SQLInt32.cs
- PackageDigitalSignature.cs
- HtmlAnchor.cs
- DataGridViewCell.cs
- ResourceDisplayNameAttribute.cs
- RangeValueProviderWrapper.cs
- ThemeInfoAttribute.cs
- SoapIgnoreAttribute.cs
- MatrixConverter.cs
- TitleStyle.cs
- Converter.cs
- Timer.cs
- TreeNode.cs
- DbSourceCommand.cs
- SafeTimerHandle.cs
- _BufferOffsetSize.cs
- SecUtil.cs
- ProtectedUri.cs
- OdbcCommandBuilder.cs
- UriParserTemplates.cs
- ColorConvertedBitmap.cs
- SecurityChannel.cs
- WindowsListViewItem.cs
- ThumbButtonInfoCollection.cs
- sortedlist.cs
- AdRotatorDesigner.cs
- DbParameterCollectionHelper.cs
- UserControl.cs
- LocalizableAttribute.cs
- HttpRuntimeSection.cs
- XPathBinder.cs
- ObjectSecurity.cs
- SrgsRulesCollection.cs
- XmlSchemaFacet.cs
- mansign.cs
- Underline.cs