Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PermissionRequestEvidence.cs
- KoreanLunisolarCalendar.cs
- SplineKeyFrames.cs
- ValidationRule.cs
- AsymmetricAlgorithm.cs
- EditableRegion.cs
- TreeViewImageIndexConverter.cs
- Trace.cs
- ScopelessEnumAttribute.cs
- SourceFileBuildProvider.cs
- ObjectDataSourceDesigner.cs
- CursorInteropHelper.cs
- _LocalDataStoreMgr.cs
- TableItemStyle.cs
- CrossAppDomainChannel.cs
- RectAnimation.cs
- MenuScrollingVisibilityConverter.cs
- ConfigXmlText.cs
- ISFClipboardData.cs
- ThemeInfoAttribute.cs
- MediaScriptCommandRoutedEventArgs.cs
- SessionEndedEventArgs.cs
- ProfileGroupSettings.cs
- ReliableRequestSessionChannel.cs
- NetStream.cs
- InvokeMethodActivity.cs
- Attributes.cs
- MediaElement.cs
- ButtonColumn.cs
- GridViewRowPresenterBase.cs
- StorageComplexPropertyMapping.cs
- TailCallAnalyzer.cs
- QilExpression.cs
- RuntimeConfig.cs
- PixelFormat.cs
- MetadataItemEmitter.cs
- ProcessHostFactoryHelper.cs
- Interfaces.cs
- TextBoxLine.cs
- EncodingInfo.cs
- DataGridParentRows.cs
- OleDbParameterCollection.cs
- ServiceOperationParameter.cs
- GACMembershipCondition.cs
- FlowLayoutSettings.cs
- ActivityExecutor.cs
- XmlCustomFormatter.cs
- ComEventsMethod.cs
- SafeNativeHandle.cs
- Process.cs
- FileIOPermission.cs
- DataControlImageButton.cs
- WindowsAuthenticationModule.cs
- TreeIterator.cs
- _SslState.cs
- ObjectDataSourceMethodEventArgs.cs
- TextTreeUndo.cs
- ClientRolePrincipal.cs
- MailAddressParser.cs
- PrivacyNoticeBindingElement.cs
- Condition.cs
- ActivityBindForm.cs
- ZoneIdentityPermission.cs
- MatrixIndependentAnimationStorage.cs
- TypeToken.cs
- TextRunCacheImp.cs
- _CommandStream.cs
- TileModeValidation.cs
- SoapFormatter.cs
- TransformGroup.cs
- LocalizedNameDescriptionPair.cs
- CmsInterop.cs
- ParserContext.cs
- Propagator.ExtentPlaceholderCreator.cs
- AutomationTextAttribute.cs
- BaseHashHelper.cs
- InheritanceAttribute.cs
- ExtendedPropertyCollection.cs
- CatalogPartDesigner.cs
- mactripleDES.cs
- SoapSchemaExporter.cs
- EditorZone.cs
- ActiveXContainer.cs
- FontWeightConverter.cs
- SchemaImporterExtensionElement.cs
- XmlSchemaSimpleTypeRestriction.cs
- BrowserCapabilitiesCodeGenerator.cs
- MULTI_QI.cs
- ClientCredentials.cs
- RequestStatusBarUpdateEventArgs.cs
- Int32Collection.cs
- TypeElementCollection.cs
- srgsitem.cs
- Stroke.cs
- Queue.cs
- WebResourceUtil.cs
- OutputChannelBinder.cs
- OverlappedAsyncResult.cs
- FormsIdentity.cs
- WebBrowserSiteBase.cs