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
- FolderNameEditor.cs
- SchemaCollectionPreprocessor.cs
- CodeTypeMember.cs
- TraceUtility.cs
- DataViewSettingCollection.cs
- ClickablePoint.cs
- StrokeCollectionDefaultValueFactory.cs
- ServiceHostFactory.cs
- DropSource.cs
- elementinformation.cs
- SigningCredentials.cs
- SequentialUshortCollection.cs
- DocumentPageViewAutomationPeer.cs
- BaseTemplateBuildProvider.cs
- DockingAttribute.cs
- StructuredType.cs
- WebPartPersonalization.cs
- DLinqColumnProvider.cs
- ConsoleTraceListener.cs
- DataStreamFromComStream.cs
- _OSSOCK.cs
- ExpressionLink.cs
- ResolveMatchesMessageCD1.cs
- ProviderSettingsCollection.cs
- ProfileService.cs
- Constant.cs
- DataServiceContext.cs
- Bitmap.cs
- AssemblyInfo.cs
- CodeGenerator.cs
- MarginsConverter.cs
- UInt64.cs
- FileLoadException.cs
- NamedElement.cs
- ObjectSet.cs
- AssemblyGen.cs
- OdbcRowUpdatingEvent.cs
- Transactions.cs
- BuildProviderUtils.cs
- ResourceReferenceExpression.cs
- ThreadStartException.cs
- AssemblyFilter.cs
- Parallel.cs
- SelectedGridItemChangedEvent.cs
- DesignerTransaction.cs
- Attachment.cs
- EventTrigger.cs
- _SslSessionsCache.cs
- StorageConditionPropertyMapping.cs
- GridViewSelectEventArgs.cs
- RoutingTable.cs
- LinearGradientBrush.cs
- UnsafeNativeMethodsMilCoreApi.cs
- StateRuntime.cs
- DesignTimeSiteMapProvider.cs
- IconHelper.cs
- ImageAutomationPeer.cs
- SqlDataSourceView.cs
- LayoutTableCell.cs
- KnownIds.cs
- AtomicFile.cs
- HelpFileFileNameEditor.cs
- EventRouteFactory.cs
- ipaddressinformationcollection.cs
- WindowsGrip.cs
- Converter.cs
- ErrorFormatterPage.cs
- Size3DValueSerializer.cs
- PropertyItemInternal.cs
- OleStrCAMarshaler.cs
- PrtTicket_Public_Simple.cs
- FamilyTypefaceCollection.cs
- X509WindowsSecurityToken.cs
- FontConverter.cs
- LineVisual.cs
- DbProviderManifest.cs
- TrackingMemoryStream.cs
- DbParameterHelper.cs
- ScrollEvent.cs
- NativeRecognizer.cs
- _ListenerResponseStream.cs
- QuotedPrintableStream.cs
- SimpleLine.cs
- FormsAuthenticationTicket.cs
- RowParagraph.cs
- WindowsGraphicsCacheManager.cs
- NamespaceTable.cs
- InternalCache.cs
- OdbcReferenceCollection.cs
- ThreadAbortException.cs
- AttachedPropertyMethodSelector.cs
- DashStyle.cs
- CommandCollectionEditor.cs
- HtmlDocument.cs
- HtmlForm.cs
- IResourceProvider.cs
- GPStream.cs
- UICuesEvent.cs
- WindowsPrincipal.cs
- FlowLayoutSettings.cs