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
- QueryTreeBuilder.cs
- FixedLineResult.cs
- ToolStripMenuItemDesigner.cs
- FileUtil.cs
- DragCompletedEventArgs.cs
- DesignOnlyAttribute.cs
- objectresult_tresulttype.cs
- RowUpdatingEventArgs.cs
- Registry.cs
- LicenseException.cs
- MasterPageCodeDomTreeGenerator.cs
- ProviderBase.cs
- DatePickerAutomationPeer.cs
- RuleInfoComparer.cs
- ReadOnlyAttribute.cs
- TaiwanLunisolarCalendar.cs
- RNGCryptoServiceProvider.cs
- WrapperEqualityComparer.cs
- BaseValidator.cs
- DataTableTypeConverter.cs
- ProcessInputEventArgs.cs
- PaintValueEventArgs.cs
- InteropBitmapSource.cs
- EntityDataSourceChangedEventArgs.cs
- CaseInsensitiveHashCodeProvider.cs
- FaultPropagationRecord.cs
- ContextStaticAttribute.cs
- DomNameTable.cs
- Debug.cs
- StringArrayEditor.cs
- ItemCollection.cs
- Assert.cs
- OpCodes.cs
- CoreSwitches.cs
- Update.cs
- RemotingService.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- MultiBindingExpression.cs
- HealthMonitoringSectionHelper.cs
- RootBrowserWindowAutomationPeer.cs
- WindowsAuthenticationModule.cs
- DeferredReference.cs
- DesignerAutoFormatCollection.cs
- ToolboxItem.cs
- Compiler.cs
- PlatformNotSupportedException.cs
- AttributeQuery.cs
- ArgumentDirectionHelper.cs
- InvokeProviderWrapper.cs
- TextProviderWrapper.cs
- RedBlackList.cs
- Lazy.cs
- ObjectItemCollection.cs
- TextBoxView.cs
- WorkflowApplicationAbortedEventArgs.cs
- Int16Storage.cs
- DataChangedEventManager.cs
- GlyphCache.cs
- Context.cs
- DbParameterCollectionHelper.cs
- StreamSecurityUpgradeInitiatorBase.cs
- SystemIPInterfaceStatistics.cs
- MasterPageBuildProvider.cs
- DataSetMappper.cs
- TypeReference.cs
- EditorPartChrome.cs
- CodeDirectionExpression.cs
- DataTableClearEvent.cs
- XsdBuildProvider.cs
- MenuItemStyleCollection.cs
- Pair.cs
- Graphics.cs
- VerificationAttribute.cs
- _SpnDictionary.cs
- ToggleProviderWrapper.cs
- RemoteCryptoDecryptRequest.cs
- RawUIStateInputReport.cs
- MessageBox.cs
- MetadataAssemblyHelper.cs
- Floater.cs
- CodeAssignStatement.cs
- RtfControls.cs
- WorkflowRequestContext.cs
- NativeMethods.cs
- ValidationResult.cs
- FileAuthorizationModule.cs
- TrustManagerPromptUI.cs
- BackgroundWorker.cs
- WebPartConnectionsConnectVerb.cs
- WebPartMenuStyle.cs
- ZoneIdentityPermission.cs
- DictionaryKeyPropertyAttribute.cs
- Parameter.cs
- MimeTypeAttribute.cs
- AnimationException.cs
- DPTypeDescriptorContext.cs
- Decoder.cs
- SubMenuStyleCollection.cs
- controlskin.cs
- Compiler.cs