Code:
/ FX-1434 / FX-1434 / 1.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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ViewUtilities.cs
- UnsafeNativeMethods.cs
- InputScopeNameConverter.cs
- EnlistmentTraceIdentifier.cs
- AlternateView.cs
- AssemblyNameProxy.cs
- LineGeometry.cs
- dsa.cs
- CompositeActivityMarkupSerializer.cs
- PageTheme.cs
- Configuration.cs
- DockProviderWrapper.cs
- BaseTemplatedMobileComponentEditor.cs
- ConfigXmlComment.cs
- CfgArc.cs
- CorePropertiesFilter.cs
- CategoryAttribute.cs
- FixedPageProcessor.cs
- ToolboxComponentsCreatedEventArgs.cs
- LinkButton.cs
- ButtonField.cs
- DeploymentSection.cs
- X509Certificate2.cs
- SimpleHandlerFactory.cs
- ItemPager.cs
- Int16AnimationUsingKeyFrames.cs
- RefreshPropertiesAttribute.cs
- PolyQuadraticBezierSegment.cs
- DataGridViewCellPaintingEventArgs.cs
- MobileUserControlDesigner.cs
- IisTraceWebEventProvider.cs
- autovalidator.cs
- WorkflowPersistenceContext.cs
- Table.cs
- PeerCollaboration.cs
- DataGridAddNewRow.cs
- InputLanguageSource.cs
- BuiltInExpr.cs
- _AutoWebProxyScriptWrapper.cs
- RegexCode.cs
- List.cs
- Query.cs
- CalculatedColumn.cs
- ToolBarButtonDesigner.cs
- AuthenticationException.cs
- TypeDescriptor.cs
- ArrayElementGridEntry.cs
- CharacterMetrics.cs
- CodeSubDirectoriesCollection.cs
- ToolStripSplitStackLayout.cs
- RegisteredExpandoAttribute.cs
- EventSetter.cs
- FontUnit.cs
- ISAPIRuntime.cs
- TextViewElement.cs
- OleDbEnumerator.cs
- Monitor.cs
- ComPlusServiceLoader.cs
- SelectionWordBreaker.cs
- StreamUpdate.cs
- TextParagraphCache.cs
- ExpressionConverter.cs
- FormClosedEvent.cs
- DataGridViewRowHeaderCell.cs
- ProgressBar.cs
- Item.cs
- Int32Converter.cs
- PropertyDescriptor.cs
- SimpleMailWebEventProvider.cs
- TcpWorkerProcess.cs
- connectionpool.cs
- Events.cs
- EventProviderWriter.cs
- XsltArgumentList.cs
- ProcessingInstructionAction.cs
- Operand.cs
- TextDataBindingHandler.cs
- IsolatedStoragePermission.cs
- IDReferencePropertyAttribute.cs
- ConfigurationLocationCollection.cs
- InternalPolicyElement.cs
- EntityDataSourceView.cs
- FilterEventArgs.cs
- MailWriter.cs
- processwaithandle.cs
- CodeTypeParameterCollection.cs
- CallContext.cs
- ApplicationSecurityManager.cs
- CodeDomDecompiler.cs
- externdll.cs
- FileLevelControlBuilderAttribute.cs
- HierarchicalDataBoundControl.cs
- RuleCache.cs
- IsolatedStorage.cs
- FusionWrap.cs
- xmlfixedPageInfo.cs
- TaskFormBase.cs
- LinkAreaEditor.cs
- CompositeDesignerAccessibleObject.cs
- FlagPanel.cs