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
- LeftCellWrapper.cs
- VectorKeyFrameCollection.cs
- ContextQuery.cs
- CopyAction.cs
- SelectionPatternIdentifiers.cs
- TextBoxView.cs
- ToolStripLabel.cs
- ListBindableAttribute.cs
- SQLGuidStorage.cs
- WrappedIUnknown.cs
- RuleCache.cs
- ResourceReferenceExpression.cs
- GatewayDefinition.cs
- SafeSecurityHandles.cs
- UpdateEventArgs.cs
- RuntimeCompatibilityAttribute.cs
- WinCategoryAttribute.cs
- GenericArgumentsUpdater.cs
- CollectionExtensions.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- ParentQuery.cs
- ContextStaticAttribute.cs
- ParameterModifier.cs
- HtmlInputText.cs
- DocumentsTrace.cs
- TypeInitializationException.cs
- ControlPersister.cs
- ExceptionUtil.cs
- Pair.cs
- TextServicesManager.cs
- Helper.cs
- ZoneLinkButton.cs
- TextBounds.cs
- TreeViewDesigner.cs
- StackOverflowException.cs
- wgx_exports.cs
- PrinterSettings.cs
- ReferencedCollectionType.cs
- DataBoundControlActionList.cs
- DependencyProperty.cs
- HwndTarget.cs
- ArgumentNullException.cs
- FloaterBaseParaClient.cs
- InputLangChangeRequestEvent.cs
- IndicCharClassifier.cs
- HMACRIPEMD160.cs
- GeneralTransformGroup.cs
- ConstraintManager.cs
- OrCondition.cs
- KeyValuePair.cs
- Terminate.cs
- MsmqTransportSecurityElement.cs
- RadioButtonRenderer.cs
- Int32RectConverter.cs
- XPathScanner.cs
- Pens.cs
- SymbolType.cs
- KeySplineConverter.cs
- Int16Storage.cs
- EventlogProvider.cs
- ComponentChangingEvent.cs
- ProjectedWrapper.cs
- MultiTrigger.cs
- WebPartConnectionsConnectVerb.cs
- SoapReflectionImporter.cs
- AxImporter.cs
- PathFigure.cs
- SafeNativeMemoryHandle.cs
- DbParameterCollectionHelper.cs
- TextEditorContextMenu.cs
- PageStatePersister.cs
- StylusEditingBehavior.cs
- MaskInputRejectedEventArgs.cs
- ObjectStateEntry.cs
- PageThemeParser.cs
- BamlVersionHeader.cs
- datacache.cs
- ActivationArguments.cs
- ArrayConverter.cs
- DataGridViewRowCancelEventArgs.cs
- XslAst.cs
- RectKeyFrameCollection.cs
- ContractAdapter.cs
- GACIdentityPermission.cs
- GlobalProxySelection.cs
- SendMessageContent.cs
- Message.cs
- PeerNameRecordCollection.cs
- EventPropertyMap.cs
- RequestQueue.cs
- OuterGlowBitmapEffect.cs
- DesignerAdapterUtil.cs
- GlobalizationAssembly.cs
- DbReferenceCollection.cs
- PixelFormats.cs
- StringFormat.cs
- ElementAction.cs
- TextAutomationPeer.cs
- SqlError.cs
- Viewport3DVisual.cs