Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / WebControls / Adapters / WebControlAdapter.cs / 1 / WebControlAdapter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.Adapters { using System; using System.Security.Permissions; using System.Web; using System.Web.UI; using System.Web.UI.Adapters; // Provides adaptive rendering for a web control. [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class WebControlAdapter : ControlAdapter { // Returns a strongly typed control instance. protected new WebControl Control { get { return (WebControl)base.Control; } } /// Indicates whether the associated WebControl is enabled /// taking into account the cascading effect of the enabled property. protected bool IsEnabled { get { return Control.IsEnabled; } } protected virtual void RenderBeginTag(HtmlTextWriter writer) { Control.RenderBeginTag(writer); } protected virtual void RenderEndTag(HtmlTextWriter writer) { Control.RenderEndTag(writer); } protected virtual void RenderContents(HtmlTextWriter writer) { Control.RenderContents(writer); } protected internal override void Render(HtmlTextWriter writer) { RenderBeginTag(writer); RenderContents(writer); RenderEndTag(writer); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.Adapters { using System; using System.Security.Permissions; using System.Web; using System.Web.UI; using System.Web.UI.Adapters; // Provides adaptive rendering for a web control. [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class WebControlAdapter : ControlAdapter { // Returns a strongly typed control instance. protected new WebControl Control { get { return (WebControl)base.Control; } } /// Indicates whether the associated WebControl is enabled /// taking into account the cascading effect of the enabled property. protected bool IsEnabled { get { return Control.IsEnabled; } } protected virtual void RenderBeginTag(HtmlTextWriter writer) { Control.RenderBeginTag(writer); } protected virtual void RenderEndTag(HtmlTextWriter writer) { Control.RenderEndTag(writer); } protected virtual void RenderContents(HtmlTextWriter writer) { Control.RenderContents(writer); } protected internal override void Render(HtmlTextWriter writer) { RenderBeginTag(writer); RenderContents(writer); RenderEndTag(writer); } } } // 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
- LayoutTableCell.cs
- CompModSwitches.cs
- VisualTreeUtils.cs
- ColorTranslator.cs
- ExpressionVisitor.cs
- PathTooLongException.cs
- WindowInteractionStateTracker.cs
- HtmlInputSubmit.cs
- XmlDataSourceView.cs
- DataGridViewColumn.cs
- DesignerResources.cs
- HttpCapabilitiesBase.cs
- sitestring.cs
- ProbeMatchesMessage11.cs
- RoutingSection.cs
- HttpRawResponse.cs
- AsymmetricKeyExchangeDeformatter.cs
- EntityStoreSchemaGenerator.cs
- AsyncCodeActivity.cs
- PermissionRequestEvidence.cs
- CacheMemory.cs
- ReceiveActivityDesigner.cs
- WebPartConnection.cs
- PrtTicket_Base.cs
- HttpPostedFileBase.cs
- ToolStripDropDownItem.cs
- Comparer.cs
- SynchronizedDisposablePool.cs
- SystemException.cs
- PrintControllerWithStatusDialog.cs
- LookupBindingPropertiesAttribute.cs
- FactoryMaker.cs
- ValidationSummary.cs
- MonthChangedEventArgs.cs
- Attributes.cs
- QualifiedCellIdBoolean.cs
- XmlUnspecifiedAttribute.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- SubMenuStyleCollectionEditor.cs
- ResourcesChangeInfo.cs
- ReflectionServiceProvider.cs
- Attributes.cs
- DataStorage.cs
- X509ChainPolicy.cs
- MeasureData.cs
- RuntimeCompatibilityAttribute.cs
- ProtocolsSection.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- TypeUsageBuilder.cs
- PeerCollaborationPermission.cs
- _ShellExpression.cs
- LinqDataSourceStatusEventArgs.cs
- AuthenticationConfig.cs
- ObfuscationAttribute.cs
- CallTemplateAction.cs
- LoginViewDesigner.cs
- TextTreeTextElementNode.cs
- ListMarkerLine.cs
- ContextStack.cs
- DataPagerFieldCommandEventArgs.cs
- Asn1IntegerConverter.cs
- D3DImage.cs
- EnumMember.cs
- Help.cs
- AssemblyUtil.cs
- CollectionsUtil.cs
- FixedSOMElement.cs
- XmlArrayAttribute.cs
- _CacheStreams.cs
- DbProviderFactory.cs
- TaskFormBase.cs
- VerticalConnector.xaml.cs
- TransformDescriptor.cs
- TemplateControlCodeDomTreeGenerator.cs
- MenuRenderer.cs
- SimpleBitVector32.cs
- ReachPageContentCollectionSerializerAsync.cs
- EntityObject.cs
- SimpleHandlerBuildProvider.cs
- AccessControlList.cs
- ControlPager.cs
- Sorting.cs
- Attributes.cs
- SystemThemeKey.cs
- Serializer.cs
- BindingCollection.cs
- SimpleApplicationHost.cs
- TokenBasedSetEnumerator.cs
- CodeArgumentReferenceExpression.cs
- RegionInfo.cs
- PrivacyNoticeBindingElementImporter.cs
- XmlQuerySequence.cs
- SourceElementsCollection.cs
- UInt64Converter.cs
- LostFocusEventManager.cs
- RightsManagementPermission.cs
- DataRowComparer.cs
- ChooseAction.cs
- DbProviderSpecificTypePropertyAttribute.cs
- DbConnectionHelper.cs