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
- EmptyStringExpandableObjectConverter.cs
- FontStyle.cs
- SafeFreeMibTable.cs
- EntityViewContainer.cs
- DtrList.cs
- Section.cs
- PaperSource.cs
- ColumnCollection.cs
- EtwTrace.cs
- ComponentCache.cs
- WindowsFormsHelpers.cs
- XmlWriterSettings.cs
- OleStrCAMarshaler.cs
- ObjectDataSourceSelectingEventArgs.cs
- PrintController.cs
- ObjectContextServiceProvider.cs
- FilteredXmlReader.cs
- HtmlTernaryTree.cs
- PointLightBase.cs
- QilDataSource.cs
- EDesignUtil.cs
- VirtualDirectoryMappingCollection.cs
- RectangleGeometry.cs
- RichTextBox.cs
- XmlDataSourceView.cs
- WebBrowserContainer.cs
- DataSourceControlBuilder.cs
- InputReportEventArgs.cs
- ListCardsInFileRequest.cs
- ColumnReorderedEventArgs.cs
- FontInfo.cs
- ADMembershipUser.cs
- QuadraticBezierSegment.cs
- CatalogPartDesigner.cs
- RemotingAttributes.cs
- DefaultHttpHandler.cs
- AutoSizeToolBoxItem.cs
- MimeParameterWriter.cs
- TreeBuilderXamlTranslator.cs
- ReadOnlyDataSource.cs
- URLEditor.cs
- CryptoHelper.cs
- WebPageTraceListener.cs
- EdmItemCollection.cs
- TraceListeners.cs
- OperandQuery.cs
- DateTimeOffsetAdapter.cs
- DesignerCategoryAttribute.cs
- DbProviderManifest.cs
- StyleModeStack.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- DeleteHelper.cs
- HttpDebugHandler.cs
- FamilyMapCollection.cs
- SeekableMessageNavigator.cs
- UmAlQuraCalendar.cs
- Renderer.cs
- DataBindingExpressionBuilder.cs
- PolyLineSegment.cs
- StringCollectionMarkupSerializer.cs
- FileLogRecordHeader.cs
- EventLogTraceListener.cs
- ProfileSettingsCollection.cs
- BinaryParser.cs
- DNS.cs
- AtomMaterializer.cs
- AnimationLayer.cs
- Connection.cs
- DomainConstraint.cs
- Pointer.cs
- PackWebRequest.cs
- TextRange.cs
- DynamicContractTypeBuilder.cs
- ArcSegment.cs
- ListItemCollection.cs
- EntityDesignerBuildProvider.cs
- XmlElementList.cs
- BindingValueChangedEventArgs.cs
- GeometryGroup.cs
- TextEditorSpelling.cs
- DbReferenceCollection.cs
- IArgumentProvider.cs
- TileBrush.cs
- DecimalAverageAggregationOperator.cs
- ResumeStoryboard.cs
- ReflectEventDescriptor.cs
- PromptBuilder.cs
- SudsWriter.cs
- ResourceAttributes.cs
- SqlCacheDependencyDatabase.cs
- CircleEase.cs
- MaskedTextBox.cs
- SchemaMerger.cs
- rsa.cs
- ProfessionalColorTable.cs
- StringBuilder.cs
- FileInfo.cs
- NameValueCollection.cs
- _StreamFramer.cs
- securestring.cs