Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ToolstripProfessionalRenderer.cs
- FormViewActionList.cs
- PeerNameRecord.cs
- UserControlBuildProvider.cs
- SecurityPermission.cs
- mongolianshape.cs
- WhereaboutsReader.cs
- MethodRental.cs
- DrawingImage.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- objectquery_tresulttype.cs
- QuadraticBezierSegment.cs
- DataServiceRequestArgs.cs
- CodeMemberField.cs
- ConstraintCollection.cs
- DynamicValueConverter.cs
- CommonGetThemePartSize.cs
- FixedHighlight.cs
- RelationshipNavigation.cs
- DebuggerAttributes.cs
- FixedLineResult.cs
- PartialCachingAttribute.cs
- EdmSchemaError.cs
- RecordManager.cs
- DataGridView.cs
- regiisutil.cs
- WindowsListViewItemStartMenu.cs
- Enumerable.cs
- DataGridViewDataConnection.cs
- PrimitiveType.cs
- ComponentDispatcherThread.cs
- PowerStatus.cs
- StaticExtensionConverter.cs
- DbModificationCommandTree.cs
- EncryptedPackage.cs
- RestHandlerFactory.cs
- TraceLevelStore.cs
- HtmlHead.cs
- OperationContextScope.cs
- SqlClientFactory.cs
- WorkflowRuntimeServiceElementCollection.cs
- ReturnValue.cs
- BaseTreeIterator.cs
- SocketAddress.cs
- WindowsGraphics.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ItemType.cs
- DetailsView.cs
- FrameworkElementFactoryMarkupObject.cs
- StructuredType.cs
- MailMessageEventArgs.cs
- UTF32Encoding.cs
- ContainerParaClient.cs
- ScrollBarRenderer.cs
- BitmapEffectInput.cs
- SecureStringHasher.cs
- AssociationProvider.cs
- InternalRelationshipCollection.cs
- DotExpr.cs
- TempFiles.cs
- SettingsPropertyIsReadOnlyException.cs
- InitializationEventAttribute.cs
- DBSqlParserTableCollection.cs
- OperationFormatUse.cs
- ConfigurationException.cs
- RowUpdatingEventArgs.cs
- BamlRecords.cs
- ChannelFactoryRefCache.cs
- ContentDisposition.cs
- SQlBooleanStorage.cs
- TemplateNameScope.cs
- RuleRefElement.cs
- CustomCredentialPolicy.cs
- Point3DAnimationBase.cs
- FormViewInsertEventArgs.cs
- VirtualPath.cs
- Menu.cs
- XmlQueryContext.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- versioninfo.cs
- DispatchChannelSink.cs
- RelatedView.cs
- InstallerTypeAttribute.cs
- DocumentReference.cs
- EventMappingSettingsCollection.cs
- Pens.cs
- ContentIterators.cs
- CacheDict.cs
- UserControlCodeDomTreeGenerator.cs
- ScrollBarAutomationPeer.cs
- WebServiceHost.cs
- ValidationPropertyAttribute.cs
- HtmlControl.cs
- ConvertBinder.cs
- BaseCodeDomTreeGenerator.cs
- EpmCustomContentSerializer.cs
- XmlPreloadedResolver.cs
- Delegate.cs
- HttpConfigurationContext.cs
- UInt16.cs