Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / WebControls / ValidatorCompatibilityHelper.cs / 1 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CommonXSendMessage.cs
- BindingUtils.cs
- WorkflowRuntimeServiceElementCollection.cs
- IPipelineRuntime.cs
- CodeEventReferenceExpression.cs
- AutomationPatternInfo.cs
- FixedTextView.cs
- DataGridViewRowPrePaintEventArgs.cs
- ButtonBaseDesigner.cs
- Transactions.cs
- CryptoHandle.cs
- nulltextnavigator.cs
- MenuItemStyleCollection.cs
- __Filters.cs
- ButtonStandardAdapter.cs
- DataPagerFieldCommandEventArgs.cs
- RuntimeWrappedException.cs
- NameNode.cs
- SizeF.cs
- LiteralTextParser.cs
- SiteOfOriginContainer.cs
- ExecutionScope.cs
- MatrixKeyFrameCollection.cs
- TabControl.cs
- EntryPointNotFoundException.cs
- VirtualDirectoryMapping.cs
- IndexedString.cs
- TypeUtil.cs
- TableDetailsRow.cs
- XmlUTF8TextReader.cs
- EntityDataSourceDataSelection.cs
- BrowserCapabilitiesCompiler.cs
- RoutedEventHandlerInfo.cs
- GeneralTransform3DTo2DTo3D.cs
- IIS7WorkerRequest.cs
- XmlSignificantWhitespace.cs
- RadioButton.cs
- CompositeKey.cs
- SystemWebSectionGroup.cs
- InkPresenter.cs
- XPathMessageFilter.cs
- TextTreeTextNode.cs
- DataKeyCollection.cs
- StringComparer.cs
- DependencyObjectPropertyDescriptor.cs
- Model3D.cs
- SqlClientWrapperSmiStreamChars.cs
- ExtendedPropertyInfo.cs
- HttpValueCollection.cs
- CollectionBuilder.cs
- ErrorInfoXmlDocument.cs
- TextRangeAdaptor.cs
- ParseElement.cs
- LambdaCompiler.Unary.cs
- ClientSession.cs
- WebServiceAttribute.cs
- EdgeProfileValidation.cs
- SQLRoleProvider.cs
- AmbientValueAttribute.cs
- Page.cs
- ShortcutKeysEditor.cs
- StreamMarshaler.cs
- TreeView.cs
- PrimaryKeyTypeConverter.cs
- NonClientArea.cs
- CodeSubDirectoriesCollection.cs
- HttpHeaderCollection.cs
- PopupEventArgs.cs
- QilBinary.cs
- CodeAttributeDeclarationCollection.cs
- Pkcs7Signer.cs
- TreeNodeCollectionEditor.cs
- FormatControl.cs
- MetabaseServerConfig.cs
- DataError.cs
- DesigntimeLicenseContextSerializer.cs
- ConfigurationManagerInternalFactory.cs
- BinaryEditor.cs
- SerialReceived.cs
- EndpointDispatcherTable.cs
- PermissionRequestEvidence.cs
- MD5CryptoServiceProvider.cs
- AnnotationObservableCollection.cs
- RegionData.cs
- Double.cs
- ExpressionBindingCollection.cs
- NameSpaceEvent.cs
- FunctionDescription.cs
- PropertyGrid.cs
- SqlConnectionPoolProviderInfo.cs
- StoryFragments.cs
- EventRecord.cs
- WindowsServiceElement.cs
- MD5.cs
- DesignerSerializationVisibilityAttribute.cs
- GroupAggregateExpr.cs
- PostBackTrigger.cs
- processwaithandle.cs
- HttpHeaderCollection.cs
- Preprocessor.cs