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
- ExpandSegmentCollection.cs
- ObjectContext.cs
- WebControl.cs
- ExpandedProjectionNode.cs
- ScriptingRoleServiceSection.cs
- SharedStatics.cs
- BaseTreeIterator.cs
- CachedBitmap.cs
- GestureRecognitionResult.cs
- SpStreamWrapper.cs
- HttpWebResponse.cs
- ProcessHost.cs
- SmtpNetworkElement.cs
- SamlAttributeStatement.cs
- ExpandCollapseIsCheckedConverter.cs
- WorkflowItemPresenter.cs
- FixedSOMTableRow.cs
- WebControlAdapter.cs
- CollectionDataContractAttribute.cs
- DateTimeConverter.cs
- AuthorizationSection.cs
- TextWriterTraceListener.cs
- DBCommand.cs
- MapPathBasedVirtualPathProvider.cs
- Assembly.cs
- SplineKeyFrames.cs
- UnsafeNativeMethods.cs
- MultitargetUtil.cs
- ToolStripItemImageRenderEventArgs.cs
- Application.cs
- ToolStripScrollButton.cs
- DataGridViewIntLinkedList.cs
- Preprocessor.cs
- FormViewRow.cs
- XmlBinaryWriterSession.cs
- AuthenticationConfig.cs
- KnownBoxes.cs
- ChannelSettingsElement.cs
- GridPattern.cs
- IgnoreSectionHandler.cs
- NetMsmqSecurityMode.cs
- WpfPayload.cs
- Domain.cs
- XPathDocumentBuilder.cs
- TickBar.cs
- XPathMultyIterator.cs
- Literal.cs
- ServiceMetadataExtension.cs
- PointAnimationUsingPath.cs
- ProfileProvider.cs
- XmlDigitalSignatureProcessor.cs
- InputReportEventArgs.cs
- NonVisualControlAttribute.cs
- SpellerInterop.cs
- ProjectionPlan.cs
- AuthenticatedStream.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ImageCollectionEditor.cs
- ConfigurationElementProperty.cs
- _HeaderInfo.cs
- ReadOnlyDataSourceView.cs
- Vector.cs
- KeyedCollection.cs
- DockAndAnchorLayout.cs
- RepeatButton.cs
- ProcessHostMapPath.cs
- ProxyOperationRuntime.cs
- XmlDataSourceNodeDescriptor.cs
- WSDualHttpSecurity.cs
- NetworkAddressChange.cs
- XamlPathDataSerializer.cs
- CompilerLocalReference.cs
- EntityExpressionVisitor.cs
- ControlUtil.cs
- BamlReader.cs
- CommentAction.cs
- namescope.cs
- IntSecurity.cs
- RepeaterDataBoundAdapter.cs
- FeatureAttribute.cs
- WrapperEqualityComparer.cs
- XamlRtfConverter.cs
- SessionEndingEventArgs.cs
- FtpWebRequest.cs
- BookmarkOptionsHelper.cs
- HwndSource.cs
- ContextStaticAttribute.cs
- TraceEventCache.cs
- DbgCompiler.cs
- PhysicalFontFamily.cs
- SafeArrayTypeMismatchException.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SmiXetterAccessMap.cs
- WebPartCloseVerb.cs
- FontDialog.cs
- ImpersonateTokenRef.cs
- WindowsTooltip.cs
- HttpListenerPrefixCollection.cs
- ColumnHeader.cs
- SqlCacheDependencyDatabaseCollection.cs