Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- UnknownMessageReceivedEventArgs.cs
- MeasurementDCInfo.cs
- LoadMessageLogger.cs
- XmlSchemaSimpleContentRestriction.cs
- SerializationSectionGroup.cs
- EmulateRecognizeCompletedEventArgs.cs
- WebBrowserContainer.cs
- Pointer.cs
- SchemaAttDef.cs
- TextTreeFixupNode.cs
- FileDialog.cs
- WindowsListViewGroupHelper.cs
- StaticSiteMapProvider.cs
- GeometryHitTestResult.cs
- HtmlForm.cs
- LabelAutomationPeer.cs
- TypeProvider.cs
- HtmlContainerControl.cs
- HeaderedItemsControl.cs
- BuildProviderCollection.cs
- EntityDataSourceWrapper.cs
- AlternateView.cs
- ColumnWidthChangingEvent.cs
- FaultHandlingFilter.cs
- DbQueryCommandTree.cs
- EndpointConfigContainer.cs
- BrowserInteropHelper.cs
- JavaScriptSerializer.cs
- TypeBuilder.cs
- EncodingInfo.cs
- StandardCommands.cs
- _KerberosClient.cs
- GridViewColumnHeaderAutomationPeer.cs
- DataRecordInternal.cs
- StorageModelBuildProvider.cs
- RowsCopiedEventArgs.cs
- Rotation3DAnimationUsingKeyFrames.cs
- AssemblyHash.cs
- DataSourceUtil.cs
- X509SecurityTokenParameters.cs
- AttachedAnnotation.cs
- MouseEvent.cs
- HotSpot.cs
- RSAOAEPKeyExchangeDeformatter.cs
- EncoderNLS.cs
- validationstate.cs
- QueueSurrogate.cs
- HandleRef.cs
- OciHandle.cs
- DocobjHost.cs
- DataControlFieldCollection.cs
- SmiConnection.cs
- SQLDecimal.cs
- DrawingServices.cs
- ParallelForEach.cs
- EnumBuilder.cs
- _SecureChannel.cs
- ServiceRouteHandler.cs
- Set.cs
- NameTable.cs
- XamlSerializer.cs
- XmlNodeChangedEventManager.cs
- JsonQNameDataContract.cs
- FileRecordSequenceCompletedAsyncResult.cs
- IApplicationTrustManager.cs
- DataKeyCollection.cs
- PenLineCapValidation.cs
- SqlBulkCopy.cs
- MarkupCompilePass2.cs
- FixedPageStructure.cs
- DesigntimeLicenseContextSerializer.cs
- FormView.cs
- RequestQueue.cs
- RangeValuePattern.cs
- HtmlPhoneCallAdapter.cs
- PerformanceCounterManager.cs
- TreeNodeCollection.cs
- ToolStripSeparator.cs
- CommandDevice.cs
- TextFormatterImp.cs
- DataGridViewEditingControlShowingEventArgs.cs
- UseAttributeSetsAction.cs
- XslAst.cs
- XmlSchemaObjectTable.cs
- LinearGradientBrush.cs
- PagerSettings.cs
- SortQueryOperator.cs
- HtmlTernaryTree.cs
- CollectionView.cs
- IdentityValidationException.cs
- TextSelection.cs
- SurrogateEncoder.cs
- XmlRootAttribute.cs
- ProgressiveCrcCalculatingStream.cs
- StrokeRenderer.cs
- EventToken.cs
- MainMenu.cs
- _HeaderInfoTable.cs
- FormsAuthentication.cs
- Classification.cs