Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / ClientScriptManagerWrapper.cs / 1305376 / ClientScriptManagerWrapper.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics; using System.Reflection; using System.Web.UI; internal sealed class ClientScriptManagerWrapper : IClientScriptManager { private readonly ClientScriptManager _clientScriptManager; internal ClientScriptManagerWrapper(ClientScriptManager clientScriptManager) { Debug.Assert(clientScriptManager != null); _clientScriptManager = clientScriptManager; } #region IClientScriptManager Members Dictionary> IClientScriptManager.RegisteredResourcesToSuppress { get { #if !ORYX_VNEXT return _clientScriptManager.RegisteredResourcesToSuppress; #else return new Dictionary >(); #endif } } string IClientScriptManager.GetPostBackEventReference(PostBackOptions options) { return _clientScriptManager.GetPostBackEventReference(options); } string IClientScriptManager.GetWebResourceUrl(Type type, string resourceName) { return _clientScriptManager.GetWebResourceUrl(type, resourceName); } void IClientScriptManager.RegisterClientScriptBlock(Type type, string key, string script) { _clientScriptManager.RegisterClientScriptBlock(type, key, script); } void IClientScriptManager.RegisterClientScriptInclude(Type type, string key, string url) { _clientScriptManager.RegisterClientScriptInclude(type, key, url); } void IClientScriptManager.RegisterClientScriptBlock(Type type, string key, string script, bool addScriptTags) { _clientScriptManager.RegisterClientScriptBlock(type, key, script, addScriptTags); } void IClientScriptManager.RegisterStartupScript(Type type, string key, string script, bool addScriptTags) { _clientScriptManager.RegisterStartupScript(type, key, script, addScriptTags); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics; using System.Reflection; using System.Web.UI; internal sealed class ClientScriptManagerWrapper : IClientScriptManager { private readonly ClientScriptManager _clientScriptManager; internal ClientScriptManagerWrapper(ClientScriptManager clientScriptManager) { Debug.Assert(clientScriptManager != null); _clientScriptManager = clientScriptManager; } #region IClientScriptManager Members Dictionary> IClientScriptManager.RegisteredResourcesToSuppress { get { #if !ORYX_VNEXT return _clientScriptManager.RegisteredResourcesToSuppress; #else return new Dictionary >(); #endif } } string IClientScriptManager.GetPostBackEventReference(PostBackOptions options) { return _clientScriptManager.GetPostBackEventReference(options); } string IClientScriptManager.GetWebResourceUrl(Type type, string resourceName) { return _clientScriptManager.GetWebResourceUrl(type, resourceName); } void IClientScriptManager.RegisterClientScriptBlock(Type type, string key, string script) { _clientScriptManager.RegisterClientScriptBlock(type, key, script); } void IClientScriptManager.RegisterClientScriptInclude(Type type, string key, string url) { _clientScriptManager.RegisterClientScriptInclude(type, key, url); } void IClientScriptManager.RegisterClientScriptBlock(Type type, string key, string script, bool addScriptTags) { _clientScriptManager.RegisterClientScriptBlock(type, key, script, addScriptTags); } void IClientScriptManager.RegisterStartupScript(Type type, string key, string script, bool addScriptTags) { _clientScriptManager.RegisterStartupScript(type, key, script, addScriptTags); } #endregion } } // 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
- _ListenerResponseStream.cs
- MenuTracker.cs
- MultilineStringConverter.cs
- VirtualDirectoryMapping.cs
- DrawingDrawingContext.cs
- PropertyCondition.cs
- XmlSignatureManifest.cs
- BehaviorEditorPart.cs
- XmlSchemaImporter.cs
- SqlDeflator.cs
- GetIsBrowserClientRequest.cs
- CacheAxisQuery.cs
- XMLSyntaxException.cs
- TextRangeBase.cs
- Function.cs
- DropDownList.cs
- SystemPens.cs
- SQLRoleProvider.cs
- printdlgexmarshaler.cs
- ToolStripDropDown.cs
- DataObject.cs
- BinaryObjectInfo.cs
- AdornerHitTestResult.cs
- PlanCompiler.cs
- CollectionView.cs
- TraceHandlerErrorFormatter.cs
- BindingCollection.cs
- MinimizableAttributeTypeConverter.cs
- HTTPNotFoundHandler.cs
- ArglessEventHandlerProxy.cs
- TreeView.cs
- View.cs
- EnumValidator.cs
- DataServiceRequestException.cs
- InfiniteIntConverter.cs
- CallContext.cs
- AsymmetricKeyExchangeFormatter.cs
- BitmapSourceSafeMILHandle.cs
- TextChangedEventArgs.cs
- EndOfStreamException.cs
- WebBrowsableAttribute.cs
- MeasurementDCInfo.cs
- WebExceptionStatus.cs
- securitycriticaldataformultiplegetandset.cs
- ArrayListCollectionBase.cs
- autovalidator.cs
- Rotation3D.cs
- AdapterDictionary.cs
- Pkcs7Recipient.cs
- DynamicFilter.cs
- ScriptBehaviorDescriptor.cs
- TdsParameterSetter.cs
- ToolStripPanelRenderEventArgs.cs
- XmlSchemaSimpleType.cs
- Classification.cs
- CompilationUtil.cs
- ListViewTableRow.cs
- EncryptedData.cs
- XmlSchemaSimpleTypeUnion.cs
- AnnotationHelper.cs
- CodeTypeMemberCollection.cs
- HttpHandlersSection.cs
- HtmlWindowCollection.cs
- ScrollEvent.cs
- DataControlLinkButton.cs
- RemotingConfigParser.cs
- SQLStringStorage.cs
- MatrixCamera.cs
- Section.cs
- Math.cs
- ServiceRoute.cs
- ZipIOExtraFieldElement.cs
- FontSizeConverter.cs
- TableLayoutStyleCollection.cs
- XmlReaderSettings.cs
- GlyphCache.cs
- QueryOutputWriter.cs
- CssClassPropertyAttribute.cs
- SynchronizedInputHelper.cs
- SessionPageStatePersister.cs
- ProviderSettings.cs
- ResourceAssociationSet.cs
- ToolboxItemCollection.cs
- ToolBarButtonDesigner.cs
- SoapSchemaImporter.cs
- QueuedDeliveryRequirementsMode.cs
- Point3DKeyFrameCollection.cs
- DataGridTextBox.cs
- GeneralTransform3DGroup.cs
- MdImport.cs
- ConvertTextFrag.cs
- CustomErrorCollection.cs
- AccessKeyManager.cs
- AnonymousIdentificationSection.cs
- SocketInformation.cs
- ButtonBaseAutomationPeer.cs
- FormsAuthentication.cs
- StylusButtonCollection.cs
- WorkflowMessageEventHandler.cs
- SoapSchemaMember.cs