Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- FormsAuthenticationTicket.cs
- DependencyProperty.cs
- AssociatedControlConverter.cs
- FileStream.cs
- SqlTypeConverter.cs
- Helpers.cs
- Timer.cs
- BinaryReader.cs
- CodeDelegateInvokeExpression.cs
- _Events.cs
- UserControl.cs
- AutoCompleteStringCollection.cs
- PasswordDeriveBytes.cs
- PersonalizationStateInfoCollection.cs
- HttpConfigurationSystem.cs
- WebAdminConfigurationHelper.cs
- Internal.cs
- ShaderEffect.cs
- RuntimeHelpers.cs
- SqlDataSourceQuery.cs
- EncryptedPackageFilter.cs
- CurrencyManager.cs
- WindowsGraphics2.cs
- MenuItemBindingCollection.cs
- HostingEnvironmentSection.cs
- FixedTextContainer.cs
- GenericWebPart.cs
- FacetChecker.cs
- ToolStripItemDataObject.cs
- ParseHttpDate.cs
- DecodeHelper.cs
- BasicViewGenerator.cs
- ComplexTypeEmitter.cs
- BitmapEffectGeneralTransform.cs
- PartBasedPackageProperties.cs
- OperationAbortedException.cs
- Win32.cs
- AppDomainCompilerProxy.cs
- ScriptingAuthenticationServiceSection.cs
- ProcessThread.cs
- PackageFilter.cs
- ReachDocumentReferenceCollectionSerializer.cs
- XmlILOptimizerVisitor.cs
- TraceXPathNavigator.cs
- Matrix3DValueSerializer.cs
- DrawingGroup.cs
- ObjectStateFormatter.cs
- XslTransform.cs
- BoolExpr.cs
- serverconfig.cs
- RemotingService.cs
- MouseEventArgs.cs
- PageThemeCodeDomTreeGenerator.cs
- RoutedEventConverter.cs
- SettingsPropertyValueCollection.cs
- SecurityContextKeyIdentifierClause.cs
- BaseTreeIterator.cs
- EditorZone.cs
- BrowserCapabilitiesFactoryBase.cs
- TypeElement.cs
- sqlstateclientmanager.cs
- DataControlFieldCollection.cs
- DllNotFoundException.cs
- CodeSnippetStatement.cs
- AtomServiceDocumentSerializer.cs
- IconBitmapDecoder.cs
- PageParser.cs
- WebSysDefaultValueAttribute.cs
- RijndaelManagedTransform.cs
- QilLiteral.cs
- AssociatedControlConverter.cs
- FtpWebResponse.cs
- OleDbTransaction.cs
- HandledMouseEvent.cs
- SharedUtils.cs
- AutoSizeToolBoxItem.cs
- KoreanLunisolarCalendar.cs
- DrawingGroup.cs
- ClientSettingsProvider.cs
- AdapterUtil.cs
- NetworkInformationPermission.cs
- ModelItemDictionary.cs
- UiaCoreApi.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ArgumentOutOfRangeException.cs
- ContentPresenter.cs
- HttpServerVarsCollection.cs
- XsltSettings.cs
- ServerIdentity.cs
- TraceContextRecord.cs
- XmlIgnoreAttribute.cs
- FormView.cs
- QilLoop.cs
- TransactionScopeDesigner.cs
- RoleService.cs
- HtmlTextArea.cs
- BaseCodeDomTreeGenerator.cs
- HtmlInputButton.cs
- MenuAutoFormat.cs
- PeerNameRegistration.cs