Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlMeta.cs / 1305376 / 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))
]
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))
]
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
- COM2FontConverter.cs
- StylusPointPropertyInfo.cs
- DSASignatureDeformatter.cs
- StatementContext.cs
- QueryContinueDragEvent.cs
- EpmSourceTree.cs
- Pens.cs
- GridViewSortEventArgs.cs
- StreamInfo.cs
- SchemaCollectionPreprocessor.cs
- XhtmlBasicPhoneCallAdapter.cs
- SQLSingleStorage.cs
- ContainerUIElement3D.cs
- ViewStateException.cs
- EntityContainer.cs
- LayoutTable.cs
- SystemIPAddressInformation.cs
- GroupBoxAutomationPeer.cs
- TabControlCancelEvent.cs
- EmissiveMaterial.cs
- InvalidTimeZoneException.cs
- GreenMethods.cs
- DbConnectionPool.cs
- ToolStripPanelSelectionGlyph.cs
- TypeConverterAttribute.cs
- ValidatorUtils.cs
- Utils.cs
- TriggerCollection.cs
- StorageBasedPackageProperties.cs
- Operators.cs
- XmlSchemaAnnotated.cs
- InitializerFacet.cs
- DataServiceClientException.cs
- listitem.cs
- AlphabetConverter.cs
- AmbiguousMatchException.cs
- ImageAttributes.cs
- XmlSchemaAnnotated.cs
- SqlParameter.cs
- TextFormatter.cs
- MdImport.cs
- DataGridViewImageCell.cs
- GridLength.cs
- ExpressionQuoter.cs
- AnimationException.cs
- ParentQuery.cs
- ErrorTableItemStyle.cs
- CollectionType.cs
- ServerValidateEventArgs.cs
- CollectionViewGroup.cs
- RichTextBox.cs
- ButtonChrome.cs
- CodeNamespaceImportCollection.cs
- WebRequestModuleElement.cs
- PackagingUtilities.cs
- InstancePersistenceCommandException.cs
- WebEventTraceProvider.cs
- UserPersonalizationStateInfo.cs
- RequestQueryParser.cs
- LocalValueEnumerator.cs
- ImmutableCollection.cs
- ObjectTag.cs
- SQLChars.cs
- AudioFormatConverter.cs
- DataGridViewIntLinkedList.cs
- DataException.cs
- RelativeSource.cs
- DbModificationClause.cs
- ValidatorCollection.cs
- MsmqProcessProtocolHandler.cs
- DropTarget.cs
- COSERVERINFO.cs
- SqlFileStream.cs
- ValidationRule.cs
- MeshGeometry3D.cs
- LayoutExceptionEventArgs.cs
- _ContextAwareResult.cs
- DataBindingExpressionBuilder.cs
- XmlTextEncoder.cs
- DigestTraceRecordHelper.cs
- HttpResponseHeader.cs
- ButtonFlatAdapter.cs
- GrammarBuilderRuleRef.cs
- NativeCppClassAttribute.cs
- ModelItemCollectionImpl.cs
- UriTemplateDispatchFormatter.cs
- Parameter.cs
- AnonymousIdentificationModule.cs
- ConstraintConverter.cs
- _RequestCacheProtocol.cs
- WsatProxy.cs
- StringExpressionSet.cs
- _ProxyChain.cs
- ToolStripSettings.cs
- DynamicEntity.cs
- DocumentOrderComparer.cs
- PerformanceCounterPermissionEntry.cs
- ProfileGroupSettingsCollection.cs
- TextHidden.cs
- AddInContractAttribute.cs