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
- SystemFonts.cs
- ObjectDataSourceSelectingEventArgs.cs
- ADRole.cs
- ClientViaElement.cs
- ExpressionNormalizer.cs
- DnsPermission.cs
- SafeCancelMibChangeNotify.cs
- HitTestWithPointDrawingContextWalker.cs
- _AutoWebProxyScriptWrapper.cs
- TraceHandlerErrorFormatter.cs
- ExchangeUtilities.cs
- ButtonChrome.cs
- PropertyDescriptorCollection.cs
- ZipIOBlockManager.cs
- ExpressionVisitor.cs
- SubMenuStyle.cs
- ConfigXmlComment.cs
- MetadataCache.cs
- TreeViewImageKeyConverter.cs
- QuadraticBezierSegment.cs
- Pair.cs
- XmlReturnWriter.cs
- DiscoveryMessageProperty.cs
- EndPoint.cs
- XmlTextReader.cs
- InlineObject.cs
- SqlStream.cs
- UpdateException.cs
- BitmapEffect.cs
- Decimal.cs
- TableDesigner.cs
- WebPartConnectionsConfigureVerb.cs
- FixedPage.cs
- listitem.cs
- PrivacyNoticeBindingElement.cs
- WebPartAuthorizationEventArgs.cs
- FormCollection.cs
- QilValidationVisitor.cs
- DataSourceListEditor.cs
- UpdateEventArgs.cs
- DispatchChannelSink.cs
- MembershipUser.cs
- RelatedCurrencyManager.cs
- EventDescriptor.cs
- ExpressionBuilderContext.cs
- UnmanagedMemoryAccessor.cs
- FormViewPageEventArgs.cs
- BCLDebug.cs
- PointConverter.cs
- versioninfo.cs
- WindowsFont.cs
- CanonicalFormWriter.cs
- HtmlGenericControl.cs
- DesignerTransaction.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- LambdaCompiler.Unary.cs
- RectKeyFrameCollection.cs
- ClientSettings.cs
- AppliedDeviceFiltersDialog.cs
- CheckPair.cs
- SqlCachedBuffer.cs
- StateChangeEvent.cs
- CanonicalizationDriver.cs
- HandlerFactoryCache.cs
- VisualBrush.cs
- DATA_BLOB.cs
- TrustExchangeException.cs
- XPathNavigatorException.cs
- RegexWorker.cs
- ActivationArguments.cs
- FamilyTypefaceCollection.cs
- FormatterServices.cs
- TrackingMemoryStreamFactory.cs
- TextEditorThreadLocalStore.cs
- ToolZoneDesigner.cs
- HtmlTable.cs
- BuildProvider.cs
- SqlClientWrapperSmiStreamChars.cs
- SchemaSetCompiler.cs
- Italic.cs
- HwndSourceParameters.cs
- CombinedGeometry.cs
- MeshGeometry3D.cs
- NamedPipeChannelFactory.cs
- OpenTypeLayoutCache.cs
- Marshal.cs
- HtmlControlPersistable.cs
- NameValueFileSectionHandler.cs
- SettingsProperty.cs
- RecognizedPhrase.cs
- TryCatchDesigner.xaml.cs
- RelatedImageListAttribute.cs
- WSSecureConversation.cs
- CellPartitioner.cs
- JsonWriterDelegator.cs
- PathBox.cs
- TrustSection.cs
- Attribute.cs
- ResXDataNode.cs
- TrackBarRenderer.cs