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
- RectangleConverter.cs
- XmlSchemaSimpleContent.cs
- QueryStringParameter.cs
- CompilerParameters.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- SpeechUI.cs
- DesignerImageAdapter.cs
- ProcessHostConfigUtils.cs
- Mapping.cs
- MailDefinitionBodyFileNameEditor.cs
- ObjectDataSourceFilteringEventArgs.cs
- SAPICategories.cs
- UnsafeNativeMethods.cs
- ExpandedWrapper.cs
- CompoundFileIOPermission.cs
- TokenBasedSetEnumerator.cs
- ListQueryResults.cs
- DrawTreeNodeEventArgs.cs
- ButtonBaseAdapter.cs
- ApplicationDirectory.cs
- SingleResultAttribute.cs
- TextCollapsingProperties.cs
- CodeIdentifier.cs
- OleDbInfoMessageEvent.cs
- PreservationFileWriter.cs
- DSASignatureFormatter.cs
- FixedNode.cs
- HtmlTernaryTree.cs
- InlineCollection.cs
- FrameworkContentElement.cs
- SystemPens.cs
- ObjectStateManager.cs
- MexHttpBindingCollectionElement.cs
- DbProviderFactories.cs
- HostingPreferredMapPath.cs
- TextRangeEditTables.cs
- OracleParameterCollection.cs
- BridgeDataRecord.cs
- Item.cs
- SqlBinder.cs
- ZipIOExtraFieldZip64Element.cs
- Int32Storage.cs
- TableLayoutCellPaintEventArgs.cs
- CategoryEditor.cs
- DataBindingCollection.cs
- PartialArray.cs
- Base64Encoder.cs
- IriParsingElement.cs
- Configuration.cs
- ConfigurationCollectionAttribute.cs
- XmlNodeChangedEventArgs.cs
- MonthCalendar.cs
- Point3DAnimationUsingKeyFrames.cs
- EventOpcode.cs
- BinaryWriter.cs
- MimeWriter.cs
- ListViewInsertionMark.cs
- ObjectDataSourceStatusEventArgs.cs
- DataGridViewCell.cs
- KeySplineConverter.cs
- ThaiBuddhistCalendar.cs
- EnlistmentState.cs
- SmiTypedGetterSetter.cs
- TypeValidationEventArgs.cs
- ConstrainedDataObject.cs
- TextRangeProviderWrapper.cs
- QilPatternFactory.cs
- Type.cs
- DataRowCollection.cs
- JulianCalendar.cs
- ExpandCollapsePattern.cs
- MessageBox.cs
- ZipPackagePart.cs
- DataGridPagerStyle.cs
- Bits.cs
- InstanceDescriptor.cs
- PersistenceProviderFactory.cs
- GlobalizationAssembly.cs
- StringCollection.cs
- ViewStateException.cs
- BooleanFacetDescriptionElement.cs
- CharacterBufferReference.cs
- PropertyMapper.cs
- ContentDesigner.cs
- SwitchAttribute.cs
- ThreadStateException.cs
- SoapInteropTypes.cs
- RedirectionProxy.cs
- CurrentChangingEventArgs.cs
- CapabilitiesAssignment.cs
- TextEditorParagraphs.cs
- _IPv6Address.cs
- Attributes.cs
- DataGridTablesFactory.cs
- HelpProvider.cs
- UserControlBuildProvider.cs
- VoiceSynthesis.cs
- Mutex.cs
- ImageField.cs
- DropDownButton.cs