Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / ValidatorCompatibilityHelper.cs / 2 / ValidatorCompatibilityHelper.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Globalization; using System.Reflection; using System.Web.Util; // Needed to support Validators in AJAX 1.0 (Windows OS Bugs 2015831) internal static class ValidatorCompatibilityHelper { public static void RegisterArrayDeclaration(Control control, string arrayName, string arrayValue) { Type scriptManagerType = control.Page.ScriptManagerType; Debug.Assert(scriptManagerType != null); scriptManagerType.InvokeMember("RegisterArrayDeclaration", BindingFlags.Public | BindingFlags.Static | BindingFlags.InvokeMethod, null, /*binder*/ null, /*target*/ new object[] {control, arrayName, arrayValue}); } public static void RegisterClientScriptResource(Control control, Type type, string resourceName) { Type scriptManagerType = control.Page.ScriptManagerType; Debug.Assert(scriptManagerType != null); scriptManagerType.InvokeMember("RegisterClientScriptResource", BindingFlags.Public | BindingFlags.Static | BindingFlags.InvokeMethod, null, /*binder*/ null, /*target*/ new object[] {control, type, resourceName}); } public static void RegisterExpandoAttribute(Control control, string controlId, string attributeName, string attributeValue, bool encode) { Type scriptManagerType = control.Page.ScriptManagerType; Debug.Assert(scriptManagerType != null); scriptManagerType.InvokeMember("RegisterExpandoAttribute", BindingFlags.Public | BindingFlags.Static | BindingFlags.InvokeMethod, null, /*binder*/ null, /*target*/ new object[] {control, controlId, attributeName, attributeValue, encode}); } public static void RegisterOnSubmitStatement(Control control, Type type, string key, string script) { Type scriptManagerType = control.Page.ScriptManagerType; Debug.Assert(scriptManagerType != null); scriptManagerType.InvokeMember("RegisterOnSubmitStatement", BindingFlags.Public | BindingFlags.Static | BindingFlags.InvokeMethod, null, /*binder*/ null, /*target*/ new object[] {control, type, key, script}); } public static void RegisterStartupScript(Control control, Type type, string key, string script, bool addScriptTags) { Type scriptManagerType = control.Page.ScriptManagerType; Debug.Assert(scriptManagerType != null); scriptManagerType.InvokeMember("RegisterStartupScript", BindingFlags.Public | BindingFlags.Static | BindingFlags.InvokeMethod, null, /*binder*/ null, /*target*/ new object[] {control, type, key, script, addScriptTags}); } } } // 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
- MenuAutomationPeer.cs
- RootProfilePropertySettingsCollection.cs
- Size3D.cs
- DocumentOrderQuery.cs
- AuthStoreRoleProvider.cs
- SecurityContext.cs
- TimeSpan.cs
- FormClosingEvent.cs
- ClientFormsAuthenticationMembershipProvider.cs
- UnhandledExceptionEventArgs.cs
- SafeBitVector32.cs
- DataTemplateKey.cs
- PtsHelper.cs
- DataSourceProvider.cs
- OdbcConnectionPoolProviderInfo.cs
- ExtensibleClassFactory.cs
- AutomationIdentifier.cs
- MemoryFailPoint.cs
- PeerDuplexChannelListener.cs
- TextParaClient.cs
- Unit.cs
- ReflectionTypeLoadException.cs
- BitStack.cs
- MetadataArtifactLoaderComposite.cs
- XmlDocumentSurrogate.cs
- DbConnectionStringBuilder.cs
- SafeBitVector32.cs
- CompilationUtil.cs
- ToolStripItemClickedEventArgs.cs
- SqlUdtInfo.cs
- UnmanagedMemoryStream.cs
- GenericParameterDataContract.cs
- RegistrySecurity.cs
- Vector3DAnimationUsingKeyFrames.cs
- InvokeProviderWrapper.cs
- SQLDouble.cs
- TrustManager.cs
- DataViewManagerListItemTypeDescriptor.cs
- XmlCollation.cs
- GeneralTransformCollection.cs
- ChangeNode.cs
- WebPartCatalogAddVerb.cs
- BaseUriHelper.cs
- _NegotiateClient.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- CodeExpressionStatement.cs
- BaseConfigurationRecord.cs
- MetadataException.cs
- OdbcParameterCollection.cs
- HtmlCommandAdapter.cs
- DictionaryChange.cs
- FixedStringLookup.cs
- RadioButton.cs
- PeoplePickerWrapper.cs
- EntityDataSourceColumn.cs
- LogicalTreeHelper.cs
- CommandField.cs
- HttpStreamFormatter.cs
- ExtenderProvidedPropertyAttribute.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ASCIIEncoding.cs
- SerializationException.cs
- Comparer.cs
- ApplyTemplatesAction.cs
- SoundPlayerAction.cs
- CompilerError.cs
- BuildResultCache.cs
- TimeSpanMinutesConverter.cs
- WebPartUtil.cs
- DynamicDiscoSearcher.cs
- SafeHandle.cs
- MdiWindowListItemConverter.cs
- OdbcConnectionOpen.cs
- CommandDesigner.cs
- IdentityModelDictionary.cs
- Rect.cs
- SqlClientMetaDataCollectionNames.cs
- AutoCompleteStringCollection.cs
- ServicePointManagerElement.cs
- CultureSpecificStringDictionary.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- QuaternionAnimationUsingKeyFrames.cs
- CurrentChangedEventManager.cs
- ChannelHandler.cs
- PageContentCollection.cs
- embossbitmapeffect.cs
- SnapshotChangeTrackingStrategy.cs
- NewExpression.cs
- LinkLabel.cs
- DesignTimeXamlWriter.cs
- CodeVariableReferenceExpression.cs
- VScrollBar.cs
- FacetValueContainer.cs
- BrowserCapabilitiesCompiler.cs
- AssertFilter.cs
- TypeSystem.cs
- ChildrenQuery.cs
- BmpBitmapDecoder.cs
- CodeSnippetTypeMember.cs
- OleDbCommand.cs