Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DependencyPropertyKind.cs
- TransactionChannelFaultConverter.cs
- VariantWrapper.cs
- WmlSelectionListAdapter.cs
- DataGridViewRowEventArgs.cs
- WebPartVerbCollection.cs
- HtmlWindowCollection.cs
- SynchronizationContext.cs
- SessionEndedEventArgs.cs
- ChangeTracker.cs
- SqlReferenceCollection.cs
- ObjectRef.cs
- DataKey.cs
- XmlStreamNodeWriter.cs
- CreateUserWizard.cs
- TreeNodeSelectionProcessor.cs
- HierarchicalDataBoundControlAdapter.cs
- BaseDataBoundControl.cs
- Base64Stream.cs
- OleDbTransaction.cs
- SmtpLoginAuthenticationModule.cs
- PerformanceCounterPermission.cs
- PersistChildrenAttribute.cs
- SplineKeyFrames.cs
- Misc.cs
- DesignTableCollection.cs
- TypeDescriptionProviderAttribute.cs
- SRGSCompiler.cs
- SecuritySessionSecurityTokenProvider.cs
- HtmlTableCell.cs
- SystemTcpConnection.cs
- FocusWithinProperty.cs
- QueryCacheEntry.cs
- SafeRightsManagementSessionHandle.cs
- ValueConversionAttribute.cs
- CqlParser.cs
- PlacementWorkspace.cs
- _CommandStream.cs
- ItemCollection.cs
- WpfKnownTypeInvoker.cs
- PieceDirectory.cs
- TextElementAutomationPeer.cs
- ResourceContainer.cs
- NamespaceMapping.cs
- WizardSideBarListControlItemEventArgs.cs
- Delegate.cs
- ErrorFormatter.cs
- GeneratedCodeAttribute.cs
- MediaContext.cs
- XmlMemberMapping.cs
- PropertyOverridesTypeEditor.cs
- GetChildSubtree.cs
- Transform.cs
- translator.cs
- DebugTraceHelper.cs
- PauseStoryboard.cs
- PerSessionInstanceContextProvider.cs
- DataKeyArray.cs
- Interlocked.cs
- GAC.cs
- XslNumber.cs
- AncillaryOps.cs
- ISFClipboardData.cs
- AssemblyBuilder.cs
- HtmlEmptyTagControlBuilder.cs
- ObjectStateEntry.cs
- Operand.cs
- CustomAttributeSerializer.cs
- LinqDataView.cs
- OracleTransaction.cs
- DictionaryCustomTypeDescriptor.cs
- Listen.cs
- XmlElement.cs
- MutexSecurity.cs
- PerfCounters.cs
- MimeWriter.cs
- SoapClientMessage.cs
- ASCIIEncoding.cs
- MailDefinition.cs
- InputProviderSite.cs
- SwitchAttribute.cs
- Psha1DerivedKeyGenerator.cs
- SqlDataSourceView.cs
- HwndSourceParameters.cs
- XmlObjectSerializerReadContext.cs
- ByteKeyFrameCollection.cs
- WebScriptEnablingBehavior.cs
- TextBox.cs
- Popup.cs
- TemplatePropertyEntry.cs
- StringExpressionSet.cs
- RootCodeDomSerializer.cs
- HashCodeCombiner.cs
- ComboBoxItem.cs
- TypeDelegator.cs
- SharedStatics.cs
- UrlPath.cs
- HwndProxyElementProvider.cs
- BufferedWebEventProvider.cs
- PackageDigitalSignatureManager.cs