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
- HitTestResult.cs
- RefreshPropertiesAttribute.cs
- XamlSerializationHelper.cs
- ProjectedSlot.cs
- HybridObjectCache.cs
- SqlConnectionString.cs
- PagePropertiesChangingEventArgs.cs
- TeredoHelper.cs
- BindingCompleteEventArgs.cs
- AutomationPropertyInfo.cs
- ComplusTypeValidator.cs
- SiteMap.cs
- SoapUnknownHeader.cs
- SystemNetworkInterface.cs
- HwndProxyElementProvider.cs
- PointValueSerializer.cs
- DomainUpDown.cs
- ConfigurationErrorsException.cs
- ObjectConverter.cs
- WebDisplayNameAttribute.cs
- WebContext.cs
- ToolStripMenuItem.cs
- TemplatedWizardStep.cs
- ConfigLoader.cs
- ProfileInfo.cs
- DeferredReference.cs
- PriorityItem.cs
- NotifyIcon.cs
- EdmFunction.cs
- LockRecursionException.cs
- infer.cs
- CategoryValueConverter.cs
- PermissionListSet.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- ProcessInfo.cs
- BmpBitmapEncoder.cs
- ConfigurationValidatorBase.cs
- PrintPreviewControl.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- Comparer.cs
- ApplicationActivator.cs
- ByeMessageApril2005.cs
- ListItemParagraph.cs
- securestring.cs
- SemaphoreFullException.cs
- RenderTargetBitmap.cs
- AdornerPresentationContext.cs
- LinkedResourceCollection.cs
- CookielessHelper.cs
- ListManagerBindingsCollection.cs
- DirectoryNotFoundException.cs
- ContractType.cs
- BigInt.cs
- ConfigDefinitionUpdates.cs
- NetworkInterface.cs
- QueryCursorEventArgs.cs
- Int16Storage.cs
- FunctionImportElement.cs
- TreeIterator.cs
- AssociationType.cs
- SerializationAttributes.cs
- SafeBitVector32.cs
- PolyQuadraticBezierSegment.cs
- PinnedBufferMemoryStream.cs
- WindowsImpersonationContext.cs
- DuplicateWaitObjectException.cs
- Type.cs
- FormViewDeletedEventArgs.cs
- PerformanceCounterManager.cs
- RootNamespaceAttribute.cs
- ManualResetEvent.cs
- TextEditorTables.cs
- HandlerMappingMemo.cs
- AudioSignalProblemOccurredEventArgs.cs
- LinqToSqlWrapper.cs
- DBNull.cs
- PkcsUtils.cs
- ConfigXmlWhitespace.cs
- ArgIterator.cs
- LogSwitch.cs
- ComponentEditorForm.cs
- FilePrompt.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- SessionStateModule.cs
- TreeSet.cs
- LiteralText.cs
- ImportOptions.cs
- DataRelationCollection.cs
- OutOfProcStateClientManager.cs
- Viewport2DVisual3D.cs
- PropertyDescriptor.cs
- NestedContainer.cs
- CuspData.cs
- HostProtectionPermission.cs
- AuthorizationSection.cs
- _SafeNetHandles.cs
- SeekStoryboard.cs
- TextBoxBase.cs
- _Win32.cs
- XmlSchemaSimpleTypeUnion.cs