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 / 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
- AssemblySettingAttributes.cs
- AuthenticatingEventArgs.cs
- AstTree.cs
- COM2EnumConverter.cs
- HTTPNotFoundHandler.cs
- RoleService.cs
- ForEachDesigner.xaml.cs
- PageParser.cs
- HtmlInputFile.cs
- ZipIOCentralDirectoryBlock.cs
- SimpleApplicationHost.cs
- PageCodeDomTreeGenerator.cs
- SafeMILHandle.cs
- PriorityQueue.cs
- ByteKeyFrameCollection.cs
- GPPOINTF.cs
- Domain.cs
- MessageContractImporter.cs
- RootNamespaceAttribute.cs
- XmlValueConverter.cs
- HelloOperationCD1AsyncResult.cs
- SerializationObjectManager.cs
- DynamicObject.cs
- ZipIOModeEnforcingStream.cs
- AppDomainEvidenceFactory.cs
- ScriptingRoleServiceSection.cs
- SqlDataSourceFilteringEventArgs.cs
- M3DUtil.cs
- LocatorGroup.cs
- RotateTransform3D.cs
- GeneratedView.cs
- CngAlgorithm.cs
- ErrorLog.cs
- SoundPlayer.cs
- ETagAttribute.cs
- WebUtil.cs
- DropShadowEffect.cs
- __Filters.cs
- StringConcat.cs
- LabelLiteral.cs
- ControlAdapter.cs
- Misc.cs
- InputScope.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- HostedHttpRequestAsyncResult.cs
- ExclusiveTcpTransportManager.cs
- NetNamedPipeBinding.cs
- TextRangeEditLists.cs
- Stack.cs
- NetworkAddressChange.cs
- DbMetaDataColumnNames.cs
- MetadataWorkspace.cs
- ClientRolePrincipal.cs
- SHA256.cs
- CompositeDataBoundControl.cs
- PolyQuadraticBezierSegment.cs
- ResXBuildProvider.cs
- Int32Rect.cs
- GcHandle.cs
- XMLUtil.cs
- XPathException.cs
- SignatureHelper.cs
- ExtendedPropertyDescriptor.cs
- CollectionBase.cs
- reliableinputsessionchannel.cs
- DropDownButton.cs
- FrameworkPropertyMetadata.cs
- PasswordBox.cs
- ServiceObjectContainer.cs
- DefaultProxySection.cs
- MruCache.cs
- HtmlTernaryTree.cs
- InvalidEnumArgumentException.cs
- HotCommands.cs
- MethodToken.cs
- StructuralComparisons.cs
- InheritedPropertyDescriptor.cs
- Themes.cs
- Currency.cs
- WorkflowLayouts.cs
- MediaPlayerState.cs
- GatewayIPAddressInformationCollection.cs
- PrivateFontCollection.cs
- DurableEnlistmentState.cs
- DefaultTextStoreTextComposition.cs
- CatalogPartChrome.cs
- SpellerInterop.cs
- HijriCalendar.cs
- ISCIIEncoding.cs
- oledbconnectionstring.cs
- ResXBuildProvider.cs
- DataGridRowClipboardEventArgs.cs
- WebPartZoneCollection.cs
- XamlTreeBuilder.cs
- XmlWhitespace.cs
- FileDialog_Vista_Interop.cs
- PropertyIDSet.cs
- Quaternion.cs
- HttpRequestMessageProperty.cs
- graph.cs