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
- FrameworkElement.cs
- Rotation3DKeyFrameCollection.cs
- WindowsTokenRoleProvider.cs
- TogglePatternIdentifiers.cs
- ServicesUtilities.cs
- XmlAttribute.cs
- DeferrableContent.cs
- TextEndOfLine.cs
- Win32Exception.cs
- XmlUtil.cs
- AccessibleObject.cs
- RoutedEventHandlerInfo.cs
- BrowserCapabilitiesCompiler.cs
- XPathDocumentBuilder.cs
- UnionCqlBlock.cs
- AstNode.cs
- CommandBindingCollection.cs
- SiteMapPath.cs
- cache.cs
- ObjectQueryState.cs
- SQLChars.cs
- SqlDataSourceCommandEventArgs.cs
- DescendantBaseQuery.cs
- SqlTransaction.cs
- SafeCoTaskMem.cs
- NoneExcludedImageIndexConverter.cs
- TreeIterator.cs
- Misc.cs
- TokenBasedSet.cs
- ToolStripRendererSwitcher.cs
- PixelFormatConverter.cs
- CookielessData.cs
- SqlNodeAnnotation.cs
- BoolExpressionVisitors.cs
- ListViewItem.cs
- BaseConfigurationRecord.cs
- DataRow.cs
- PopupRoot.cs
- BindingRestrictions.cs
- mactripleDES.cs
- Vector.cs
- SimpleHandlerBuildProvider.cs
- DependencyPropertyConverter.cs
- EntityType.cs
- EntityParameterCollection.cs
- SqlDataSourceQueryEditorForm.cs
- Parameter.cs
- DocumentGridContextMenu.cs
- RuleSet.cs
- ClientData.cs
- ListViewEditEventArgs.cs
- XmlAttributeOverrides.cs
- XmlComment.cs
- XPathParser.cs
- __Error.cs
- ErrorFormatter.cs
- PagerSettings.cs
- RangeValidator.cs
- FileEnumerator.cs
- ActiveDesignSurfaceEvent.cs
- DuplicateDetector.cs
- ScopeElementCollection.cs
- AutoCompleteStringCollection.cs
- PasswordRecovery.cs
- IriParsingElement.cs
- ScrollViewer.cs
- GeneralEndpointIdentity.cs
- BooleanAnimationUsingKeyFrames.cs
- BulletChrome.cs
- XamlWriter.cs
- ScrollChangedEventArgs.cs
- SharedDp.cs
- SemanticBasicElement.cs
- BooleanExpr.cs
- FileReader.cs
- ListView.cs
- GenericUriParser.cs
- Rule.cs
- StylusCollection.cs
- OleDbConnectionInternal.cs
- SessionStateContainer.cs
- ContextMenuService.cs
- WriteStateInfoBase.cs
- HiddenField.cs
- Compiler.cs
- XmlReaderSettings.cs
- SessionEndingEventArgs.cs
- TransformGroup.cs
- TimeoutException.cs
- NativeMethods.cs
- HostingEnvironmentException.cs
- InvalidDocumentContentsException.cs
- DataGridViewRowConverter.cs
- DateTimeConstantAttribute.cs
- EntityDataReader.cs
- XmlSchemaGroupRef.cs
- StringCollection.cs
- SelectorItemAutomationPeer.cs
- DeleteHelper.cs
- Delegate.cs