Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MessageBox.cs
- RtfControls.cs
- GenericUriParser.cs
- DataPager.cs
- PersonalizationProviderCollection.cs
- BindingMemberInfo.cs
- HtmlTableRowCollection.cs
- connectionpool.cs
- XamlParser.cs
- DataGridViewRowEventArgs.cs
- BamlLocalizableResourceKey.cs
- TaiwanCalendar.cs
- CompModSwitches.cs
- ToolStripSeparatorRenderEventArgs.cs
- OrderedDictionary.cs
- XmlSerializerFactory.cs
- BaseTemplateBuildProvider.cs
- AssociationEndMember.cs
- GorillaCodec.cs
- MouseWheelEventArgs.cs
- _NegoState.cs
- DoubleLink.cs
- ExpressionConverter.cs
- NavigationFailedEventArgs.cs
- TextParaClient.cs
- LogRecordSequence.cs
- RbTree.cs
- PointCollection.cs
- XmlDataDocument.cs
- DesignerObjectListAdapter.cs
- OleDbErrorCollection.cs
- Stopwatch.cs
- DependencyPropertyHelper.cs
- DockPatternIdentifiers.cs
- ViewStateException.cs
- MetadataCacheItem.cs
- DispatchOperationRuntime.cs
- Publisher.cs
- COM2PropertyDescriptor.cs
- CommandHelper.cs
- DataGridViewRowConverter.cs
- DbConnectionPoolGroupProviderInfo.cs
- FormatConvertedBitmap.cs
- FilterException.cs
- CompilerError.cs
- InternalControlCollection.cs
- RtfToXamlReader.cs
- SystemColorTracker.cs
- PlanCompiler.cs
- RightNameExpirationInfoPair.cs
- DecimalAnimation.cs
- RoutedEvent.cs
- Baml6ConstructorInfo.cs
- XmlSignatureManifest.cs
- WebRequest.cs
- VirtualizingStackPanel.cs
- GridPatternIdentifiers.cs
- FileDialog.cs
- OdbcConnectionString.cs
- ConnectionStringEditor.cs
- WindowsRebar.cs
- CustomExpressionEventArgs.cs
- Roles.cs
- DbInsertCommandTree.cs
- ValidatingCollection.cs
- DataFieldEditor.cs
- MailSettingsSection.cs
- HostingEnvironmentException.cs
- ExtensibleClassFactory.cs
- ConfigurationManagerInternalFactory.cs
- XmlFileEditor.cs
- WeakEventManager.cs
- BinaryMessageFormatter.cs
- MessageBodyDescription.cs
- TextTreeUndoUnit.cs
- FormViewUpdatedEventArgs.cs
- DialogResultConverter.cs
- xamlnodes.cs
- ExcCanonicalXml.cs
- UIElementParaClient.cs
- TextEditorCopyPaste.cs
- DataGridCellAutomationPeer.cs
- WebColorConverter.cs
- ToolStripItemImageRenderEventArgs.cs
- DesignOnlyAttribute.cs
- CultureSpecificStringDictionary.cs
- ColorMap.cs
- ClaimTypeRequirement.cs
- CallInfo.cs
- WebDescriptionAttribute.cs
- LineBreakRecord.cs
- BypassElement.cs
- Button.cs
- Converter.cs
- Type.cs
- PointAnimation.cs
- IdentifierCollection.cs
- DataServiceClientException.cs
- AnchoredBlock.cs
- CommandManager.cs