Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / ValidatorCompatibilityHelper.cs / 3 / 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}); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StrokeNodeData.cs
- FontStretchConverter.cs
- TextPattern.cs
- CreateUserErrorEventArgs.cs
- SingleQueryOperator.cs
- TypeConverterBase.cs
- Trigger.cs
- SmiSettersStream.cs
- Polyline.cs
- TouchDevice.cs
- MasterPageCodeDomTreeGenerator.cs
- NameSpaceEvent.cs
- SimpleRecyclingCache.cs
- DesignerActionVerbItem.cs
- DynamicPropertyHolder.cs
- PagedControl.cs
- Calendar.cs
- ScaleTransform.cs
- BuildProviderCollection.cs
- DelegateSerializationHolder.cs
- Compilation.cs
- AppDomain.cs
- ProfileGroupSettings.cs
- ClassDataContract.cs
- NamespaceDecl.cs
- NetSectionGroup.cs
- AttributeAction.cs
- UserNameSecurityToken.cs
- RootProjectionNode.cs
- NamespaceEmitter.cs
- SchemaElement.cs
- TextAdaptor.cs
- RemotingConfiguration.cs
- ContractComponent.cs
- OuterGlowBitmapEffect.cs
- TextRangeSerialization.cs
- TextServicesManager.cs
- DiagnosticsConfigurationHandler.cs
- ProfileParameter.cs
- SessionEndedEventArgs.cs
- UiaCoreApi.cs
- DataMisalignedException.cs
- AccessedThroughPropertyAttribute.cs
- Brush.cs
- ScrollProperties.cs
- CurrentChangingEventManager.cs
- HtmlTableCell.cs
- DecoderBestFitFallback.cs
- SizeF.cs
- DBDataPermission.cs
- ListViewDeleteEventArgs.cs
- ConfigViewGenerator.cs
- DragDeltaEventArgs.cs
- SectionVisual.cs
- InputLangChangeRequestEvent.cs
- NativeMethods.cs
- StrongNameSignatureInformation.cs
- PostBackOptions.cs
- StylusPointPropertyId.cs
- ObjectDataProvider.cs
- UpdatePanel.cs
- ValidatedControlConverter.cs
- XmlNamespaceMappingCollection.cs
- SoundPlayer.cs
- RadioButtonStandardAdapter.cs
- CodeThrowExceptionStatement.cs
- XmlUrlEditor.cs
- FlowDecision.cs
- EventWaitHandle.cs
- CustomAttributeBuilder.cs
- CharUnicodeInfo.cs
- EmptyStringExpandableObjectConverter.cs
- X509CertificateClaimSet.cs
- TdsParameterSetter.cs
- TransformCollection.cs
- LambdaCompiler.Expressions.cs
- TypeLoadException.cs
- Point3DConverter.cs
- tabpagecollectioneditor.cs
- HyperLinkStyle.cs
- DataGridViewLinkCell.cs
- HandledEventArgs.cs
- ModuleElement.cs
- ObjectQuery_EntitySqlExtensions.cs
- Registry.cs
- RotateTransform.cs
- SponsorHelper.cs
- NullableLongMinMaxAggregationOperator.cs
- TransformDescriptor.cs
- NativeMethods.cs
- BufferBuilder.cs
- PermissionToken.cs
- ContextProperty.cs
- SvcMapFile.cs
- MetadataArtifactLoader.cs
- DeflateStream.cs
- DataGridCommandEventArgs.cs
- NativeRightsManagementAPIsStructures.cs
- HttpRuntimeSection.cs
- XmlStrings.cs