Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / ui / ClientScriptManagerWrapper.cs / 1 / ClientScriptManagerWrapper.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Diagnostics; 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 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.Diagnostics; 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 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
- ClientScriptItem.cs
- ProcessThreadDesigner.cs
- EntityDataSourceValidationException.cs
- ChannelServices.cs
- AttributeCollection.cs
- ProcessInfo.cs
- VirtualDirectoryMappingCollection.cs
- ParserStreamGeometryContext.cs
- OleDbDataReader.cs
- FileUpload.cs
- TypeConverterHelper.cs
- InternalsVisibleToAttribute.cs
- DefaultWorkflowLoaderService.cs
- EnumerableRowCollection.cs
- XPathDocumentIterator.cs
- PermissionSetEnumerator.cs
- SHA1.cs
- SiteMapSection.cs
- TcpProcessProtocolHandler.cs
- MultiAsyncResult.cs
- BooleanSwitch.cs
- WebRequestModuleElementCollection.cs
- SendMailErrorEventArgs.cs
- BoolLiteral.cs
- ProgressiveCrcCalculatingStream.cs
- RouteValueDictionary.cs
- Region.cs
- ButtonFieldBase.cs
- MsmqProcessProtocolHandler.cs
- StreamProxy.cs
- ObjectDataSourceMethodEventArgs.cs
- ContextStaticAttribute.cs
- DrawingGroupDrawingContext.cs
- MaskedTextBox.cs
- ActivityTrace.cs
- AutomationPropertyInfo.cs
- Util.cs
- OleDbRowUpdatingEvent.cs
- CodeRemoveEventStatement.cs
- COM2ComponentEditor.cs
- ToolTip.cs
- WorkerRequest.cs
- CellTreeNode.cs
- SqlFacetAttribute.cs
- SoapProtocolImporter.cs
- OdbcError.cs
- Cursors.cs
- ControlHelper.cs
- Claim.cs
- WinFormsComponentEditor.cs
- NotifyIcon.cs
- Process.cs
- ExpressionBinding.cs
- SecurityCapabilities.cs
- Label.cs
- TableRowCollection.cs
- assemblycache.cs
- TileModeValidation.cs
- BoundField.cs
- XmlStreamStore.cs
- SchemaDeclBase.cs
- ErrorTableItemStyle.cs
- FileDataSourceCache.cs
- OrderPreservingPipeliningSpoolingTask.cs
- HierarchicalDataSourceControl.cs
- TrackingDataItemValue.cs
- BatchServiceHost.cs
- ObjectTag.cs
- GuidTagList.cs
- IdentityModelDictionary.cs
- WindowsPen.cs
- BooleanFunctions.cs
- HtmlLinkAdapter.cs
- SQLRoleProvider.cs
- ButtonFieldBase.cs
- ParameterCollection.cs
- OleDbStruct.cs
- LocatorPart.cs
- ActivityExecutionWorkItem.cs
- Helper.cs
- RelatedCurrencyManager.cs
- TraceHwndHost.cs
- TraceInternal.cs
- AccessViolationException.cs
- StylusDownEventArgs.cs
- PartialCachingAttribute.cs
- StringFreezingAttribute.cs
- ScriptServiceAttribute.cs
- log.cs
- Monitor.cs
- Base64Stream.cs
- StrokeCollectionDefaultValueFactory.cs
- CfgParser.cs
- DbSetClause.cs
- ExponentialEase.cs
- IOException.cs
- LinkUtilities.cs
- Semaphore.cs
- HideDisabledControlAdapter.cs
- LazyInitializer.cs