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
- CustomErrorsSection.cs
- ComponentResourceKeyConverter.cs
- TraceData.cs
- MouseEvent.cs
- SeekStoryboard.cs
- PreservationFileWriter.cs
- XmlSchemaValidator.cs
- RecordConverter.cs
- XmlSchemaAny.cs
- ParentControlDesigner.cs
- MetadataUtilsSmi.cs
- CodeStatementCollection.cs
- CryptoHandle.cs
- FormViewPagerRow.cs
- RelationshipDetailsCollection.cs
- SignatureHelper.cs
- InputBinding.cs
- XmlWrappingWriter.cs
- SectionInput.cs
- XPathScanner.cs
- ModuleConfigurationInfo.cs
- ColorTransformHelper.cs
- AxisAngleRotation3D.cs
- AssemblyCollection.cs
- FormatException.cs
- Border.cs
- SspiNegotiationTokenAuthenticator.cs
- DebugHandleTracker.cs
- IPipelineRuntime.cs
- MultiPropertyDescriptorGridEntry.cs
- PartialCachingAttribute.cs
- ExtensionWindowResizeGrip.cs
- TraceHandler.cs
- NumericUpDownAcceleration.cs
- Accessible.cs
- DataProtection.cs
- OperationPerformanceCounters.cs
- RemoteWebConfigurationHost.cs
- ListViewHitTestInfo.cs
- XamlStyleSerializer.cs
- GenericAuthenticationEventArgs.cs
- Geometry3D.cs
- MsmqChannelListenerBase.cs
- AffineTransform3D.cs
- TableSectionStyle.cs
- FileDialog_Vista_Interop.cs
- RegistryKey.cs
- StateItem.cs
- DataBoundControlParameterTarget.cs
- XPathNodeList.cs
- NamedPermissionSet.cs
- METAHEADER.cs
- uribuilder.cs
- ImageMapEventArgs.cs
- SimpleType.cs
- WebProxyScriptElement.cs
- AutomationPatternInfo.cs
- Misc.cs
- MultiDataTrigger.cs
- IdentitySection.cs
- OdbcErrorCollection.cs
- Int16Storage.cs
- HtmlShimManager.cs
- MinimizableAttributeTypeConverter.cs
- SplineKeyFrames.cs
- AnnotationResourceChangedEventArgs.cs
- SqlFileStream.cs
- UInt32.cs
- HostingEnvironmentSection.cs
- FormViewRow.cs
- ModelChangedEventArgsImpl.cs
- ItemsChangedEventArgs.cs
- FillRuleValidation.cs
- MouseActionConverter.cs
- FilteredAttributeCollection.cs
- ResourceIDHelper.cs
- StringUtil.cs
- ByteBufferPool.cs
- VirtualizedContainerService.cs
- TreeWalker.cs
- PropertyNames.cs
- TimeSpanConverter.cs
- CodeStatement.cs
- DependencyObjectPropertyDescriptor.cs
- DirectionalLight.cs
- DataGrid.cs
- ConnectionStringsExpressionBuilder.cs
- VisualTreeUtils.cs
- TemplateColumn.cs
- _ShellExpression.cs
- GridViewItemAutomationPeer.cs
- MLangCodePageEncoding.cs
- Matrix3D.cs
- PermissionSetTriple.cs
- ExpressionHelper.cs
- MatrixStack.cs
- CmsInterop.cs
- Point3DCollection.cs
- RequestCacheValidator.cs
- BitmapEffectState.cs