Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- GraphicsContainer.cs
- LayoutEngine.cs
- ServiceModelActivationSectionGroup.cs
- HyperLinkStyle.cs
- RuleSettings.cs
- NegationPusher.cs
- DesignerDataTableBase.cs
- ComponentEvent.cs
- CustomErrorsSection.cs
- ConnectionProviderAttribute.cs
- ServiceDocumentFormatter.cs
- SqlRewriteScalarSubqueries.cs
- BinHexEncoder.cs
- AlternationConverter.cs
- IODescriptionAttribute.cs
- ConnectionAcceptor.cs
- HGlobalSafeHandle.cs
- LogEntryDeserializer.cs
- SystemKeyConverter.cs
- EdmFunction.cs
- OracleString.cs
- TraceHandlerErrorFormatter.cs
- CryptoKeySecurity.cs
- ExplicitDiscriminatorMap.cs
- CardSpaceException.cs
- X509CertificateChain.cs
- PropertyGridEditorPart.cs
- Triplet.cs
- AssemblyFilter.cs
- XmlSchemaAnnotated.cs
- RenamedEventArgs.cs
- SynthesizerStateChangedEventArgs.cs
- WindowsAuthenticationEventArgs.cs
- ReadOnlyAttribute.cs
- SQLDecimal.cs
- FileDialogCustomPlace.cs
- XmlCountingReader.cs
- Behavior.cs
- OrderedDictionaryStateHelper.cs
- ListBoxAutomationPeer.cs
- remotingproxy.cs
- InstalledFontCollection.cs
- StyleBamlTreeBuilder.cs
- DefaultConfirmation.cs
- LabelEditEvent.cs
- ObjectQuery.cs
- CryptoProvider.cs
- AuthenticationException.cs
- TextTrailingCharacterEllipsis.cs
- SourceElementsCollection.cs
- SqlDataReaderSmi.cs
- CodeLinePragma.cs
- SplitterEvent.cs
- CursorConverter.cs
- AsyncResult.cs
- ButtonColumn.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- SoapTypeAttribute.cs
- PaintValueEventArgs.cs
- BrowserCapabilitiesCompiler.cs
- DefaultWorkflowLoaderService.cs
- ProcessModelSection.cs
- UIElement3DAutomationPeer.cs
- TCPClient.cs
- TreeNodeStyleCollection.cs
- FixedFindEngine.cs
- SmiEventStream.cs
- MouseCaptureWithinProperty.cs
- TrustManager.cs
- TextSimpleMarkerProperties.cs
- DataException.cs
- VScrollBar.cs
- HierarchicalDataSourceIDConverter.cs
- AppDomainInfo.cs
- StrongNameMembershipCondition.cs
- TextRangeBase.cs
- FormViewInsertEventArgs.cs
- xsdvalidator.cs
- StreamGeometry.cs
- OracleCommandBuilder.cs
- DataIdProcessor.cs
- FieldCollectionEditor.cs
- XsdDuration.cs
- DataColumn.cs
- DrawingContextWalker.cs
- IssuedTokenParametersEndpointAddressElement.cs
- FocusManager.cs
- FontEmbeddingManager.cs
- TemplateBamlRecordReader.cs
- ServiceNameCollection.cs
- HiddenField.cs
- FileEnumerator.cs
- ServiceElementCollection.cs
- BitmapEffectDrawingContent.cs
- ClonableStack.cs
- TreeBuilderBamlTranslator.cs
- WebReference.cs
- GraphicsContext.cs
- WorkflowMarkupElementEventArgs.cs
- ConfigXmlText.cs