Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / HtmlControls / HtmlGenericControl.cs / 1 / HtmlGenericControl.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
* HtmlGenericControl.cs
*
* Copyright (c) 2000 Microsoft Corporation
*/
namespace System.Web.UI.HtmlControls {
using System;
using System.Collections;
using System.ComponentModel;
using System.IO;
using System.Web.UI;
using System.Security.Permissions;
/*
* A control representing an unknown Html tag.
*/
///
///
/// The class defines the methods,
/// properties, and events for all HTML Server control tags not represented by a
/// specific class.
///
///
[ConstructorNeedsTag(true)]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class HtmlGenericControl : HtmlContainerControl {
/*
* Creates a new WebControl
*/
///
/// Initializes a new instance of the class with default
/// values.
///
public HtmlGenericControl() : this("span") {
}
/*
* Creates a new HtmlGenericControl
*/
///
/// Initializes a new instance of the class using the specified
/// string.
///
public HtmlGenericControl(string tag) {
if (tag == null)
tag = String.Empty;
_tagName = tag;
}
/*
* Property to get name of tag.
*/
///
///
/// Gets or sets the element name of a tag that contains a
/// runat="server" attribute/value pair.
///
///
[
WebCategory("Appearance"),
DefaultValue(""),
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)
]
new public string TagName {
get { return _tagName;}
set {_tagName = value;}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
* HtmlGenericControl.cs
*
* Copyright (c) 2000 Microsoft Corporation
*/
namespace System.Web.UI.HtmlControls {
using System;
using System.Collections;
using System.ComponentModel;
using System.IO;
using System.Web.UI;
using System.Security.Permissions;
/*
* A control representing an unknown Html tag.
*/
///
///
/// The class defines the methods,
/// properties, and events for all HTML Server control tags not represented by a
/// specific class.
///
///
[ConstructorNeedsTag(true)]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class HtmlGenericControl : HtmlContainerControl {
/*
* Creates a new WebControl
*/
///
/// Initializes a new instance of the class with default
/// values.
///
public HtmlGenericControl() : this("span") {
}
/*
* Creates a new HtmlGenericControl
*/
///
/// Initializes a new instance of the class using the specified
/// string.
///
public HtmlGenericControl(string tag) {
if (tag == null)
tag = String.Empty;
_tagName = tag;
}
/*
* Property to get name of tag.
*/
///
///
/// Gets or sets the element name of a tag that contains a
/// runat="server" attribute/value pair.
///
///
[
WebCategory("Appearance"),
DefaultValue(""),
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)
]
new public string TagName {
get { return _tagName;}
set {_tagName = value;}
}
}
}
// 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
- X509RecipientCertificateServiceElement.cs
- ValueExpressions.cs
- AdditionalEntityFunctions.cs
- SqlPersonalizationProvider.cs
- PartialTrustVisibleAssemblyCollection.cs
- CapabilitiesRule.cs
- ArraySubsetEnumerator.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- HtmlAnchor.cs
- RandomDelayQueuedSendsAsyncResult.cs
- SourceFileInfo.cs
- ProtectedConfiguration.cs
- glyphs.cs
- WebPartDisplayModeEventArgs.cs
- ConstantCheck.cs
- WindowsAltTab.cs
- FacetChecker.cs
- EntityDataSourceColumn.cs
- ColumnMap.cs
- SqlClientWrapperSmiStream.cs
- PackWebResponse.cs
- AuthenticationConfig.cs
- arclist.cs
- TimeSpanMinutesConverter.cs
- TransformValueSerializer.cs
- KeyGestureConverter.cs
- DataGridrowEditEndingEventArgs.cs
- precedingquery.cs
- ClientUrlResolverWrapper.cs
- TextBoxView.cs
- FormatSettings.cs
- CodeAttachEventStatement.cs
- QuaternionAnimationBase.cs
- CodeTypeOfExpression.cs
- NavigationProgressEventArgs.cs
- TypeUtil.cs
- NamespaceTable.cs
- MembershipSection.cs
- ClientSideQueueItem.cs
- Size.cs
- SortedList.cs
- HwndMouseInputProvider.cs
- XPathExpr.cs
- basevalidator.cs
- ImageDrawing.cs
- SymbolMethod.cs
- TreeView.cs
- QuadraticBezierSegment.cs
- StandardToolWindows.cs
- EditBehavior.cs
- ClientUtils.cs
- PersonalizationDictionary.cs
- WebPartDeleteVerb.cs
- Context.cs
- SHA384CryptoServiceProvider.cs
- LocalizableAttribute.cs
- RadioButtonFlatAdapter.cs
- MenuItem.cs
- PermissionSet.cs
- XmlSchemaDatatype.cs
- BufferAllocator.cs
- ScalarConstant.cs
- WebBrowserEvent.cs
- ScrollChrome.cs
- Stacktrace.cs
- WebRequest.cs
- PointAnimationUsingPath.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- IdentitySection.cs
- AdornerPresentationContext.cs
- FontFamily.cs
- BufferModeSettings.cs
- DbConnectionPool.cs
- serverconfig.cs
- JapaneseLunisolarCalendar.cs
- UnauthorizedAccessException.cs
- NullNotAllowedCollection.cs
- Models.cs
- LabelEditEvent.cs
- Trustee.cs
- XmlException.cs
- DataSpaceManager.cs
- IISMapPath.cs
- XmlLoader.cs
- TransformCryptoHandle.cs
- InputMethodStateChangeEventArgs.cs
- MenuCommand.cs
- XamlTemplateSerializer.cs
- Delegate.cs
- XmlAttributeCollection.cs
- Point3DAnimationUsingKeyFrames.cs
- DependencyPropertyHelper.cs
- _ScatterGatherBuffers.cs
- ClientConfigurationHost.cs
- CreateWorkflowOwnerCommand.cs
- EmbeddedMailObject.cs
- ControlsConfig.cs
- AccessedThroughPropertyAttribute.cs
- RedBlackList.cs
- WaitHandle.cs