Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- TypeLoadException.cs
- Content.cs
- EllipseGeometry.cs
- PackWebResponse.cs
- ELinqQueryState.cs
- FileUtil.cs
- ELinqQueryState.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ObjectSelectorEditor.cs
- SchemaNotation.cs
- serverconfig.cs
- MetadataCacheItem.cs
- Binding.cs
- DocumentViewerHelper.cs
- Attributes.cs
- WindowsListViewGroup.cs
- NeedSkipTokenVisitor.cs
- hwndwrapper.cs
- EncryptedPackageFilter.cs
- EncodingInfo.cs
- PageTheme.cs
- EntityReference.cs
- ValueConversionAttribute.cs
- MetabaseServerConfig.cs
- StackBuilderSink.cs
- WsatExtendedInformation.cs
- ADConnectionHelper.cs
- Lasso.cs
- SystemFonts.cs
- SoapInteropTypes.cs
- MsmqBindingElementBase.cs
- SpecularMaterial.cs
- TabletCollection.cs
- HtmlMeta.cs
- StringFreezingAttribute.cs
- CompiledWorkflowDefinitionContext.cs
- WrappedDispatcherException.cs
- SHA256Managed.cs
- KeyMatchBuilder.cs
- MetadataSerializer.cs
- GridViewEditEventArgs.cs
- BaseCAMarshaler.cs
- TextEditorMouse.cs
- SizeAnimation.cs
- SchemaCollectionCompiler.cs
- RelatedCurrencyManager.cs
- ApplicationId.cs
- IfJoinedCondition.cs
- DBSqlParser.cs
- WorkItem.cs
- DuplicateDetector.cs
- MenuAdapter.cs
- SqlDataSourceCache.cs
- MimeParameters.cs
- CallSite.cs
- DateTimeFormatInfoScanner.cs
- PropertyItem.cs
- ActionFrame.cs
- DbMetaDataFactory.cs
- PointLight.cs
- SQLBytes.cs
- SafeRightsManagementEnvironmentHandle.cs
- URLAttribute.cs
- SizeKeyFrameCollection.cs
- FormViewPagerRow.cs
- RewritingPass.cs
- ZipIOLocalFileHeader.cs
- AttachedPropertyBrowsableAttribute.cs
- RouteValueDictionary.cs
- ItemAutomationPeer.cs
- MouseGestureConverter.cs
- DateTimeStorage.cs
- DataControlReferenceCollection.cs
- ColorIndependentAnimationStorage.cs
- DateTimePickerDesigner.cs
- WSDualHttpBinding.cs
- SizeAnimation.cs
- SmiEventStream.cs
- SettingsAttributeDictionary.cs
- processwaithandle.cs
- DefaultObjectMappingItemCollection.cs
- StyleSheet.cs
- Context.cs
- IdentityReference.cs
- ConfigXmlElement.cs
- ToolboxBitmapAttribute.cs
- ConfigXmlSignificantWhitespace.cs
- Activator.cs
- UInt32Converter.cs
- X509ImageLogo.cs
- SchemaConstraints.cs
- _BufferOffsetSize.cs
- PopupEventArgs.cs
- WebBrowserBase.cs
- ItemContainerGenerator.cs
- MenuAdapter.cs
- OrthographicCamera.cs
- ButtonColumn.cs
- EditCommandColumn.cs
- FileClassifier.cs