Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / ValidatorCompatibilityHelper.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebControlsSection.cs
- URLString.cs
- ExpandSegment.cs
- ChannelServices.cs
- GuidConverter.cs
- StandardOleMarshalObject.cs
- SByteConverter.cs
- EndpointFilterProvider.cs
- UnaryNode.cs
- Calendar.cs
- TreeViewDesigner.cs
- LayoutDump.cs
- _NetRes.cs
- WebBrowserContainer.cs
- ControlBuilderAttribute.cs
- MenuScrollingVisibilityConverter.cs
- MatchNoneMessageFilter.cs
- RenderDataDrawingContext.cs
- MenuItem.cs
- DocumentStream.cs
- TableLayoutStyle.cs
- WebSysDescriptionAttribute.cs
- TerminatorSinks.cs
- DragDeltaEventArgs.cs
- SessionIDManager.cs
- ProcessMonitor.cs
- InternalConfigSettingsFactory.cs
- TagPrefixCollection.cs
- SiteMapProvider.cs
- DocumentAutomationPeer.cs
- KeyGesture.cs
- UshortList2.cs
- WebBrowserUriTypeConverter.cs
- XmlKeywords.cs
- DataTemplateSelector.cs
- AssemblyResourceLoader.cs
- ClientTargetCollection.cs
- HelpEvent.cs
- HWStack.cs
- DataBinder.cs
- WebMessageBodyStyleHelper.cs
- EmptyEnumerator.cs
- TypeValidationEventArgs.cs
- PackageStore.cs
- webbrowsersite.cs
- UpdatePanelControlTrigger.cs
- PropertyMap.cs
- SegmentInfo.cs
- XmlHierarchicalEnumerable.cs
- Config.cs
- DrawingContextWalker.cs
- ShapingWorkspace.cs
- WizardPanelChangingEventArgs.cs
- Compiler.cs
- SortedList.cs
- RandomNumberGenerator.cs
- SubordinateTransaction.cs
- securitymgrsite.cs
- PointHitTestParameters.cs
- ThreadStateException.cs
- AddInStore.cs
- NavigationService.cs
- DataError.cs
- RelatedImageListAttribute.cs
- PrintingPermissionAttribute.cs
- ValidatorCollection.cs
- WebDisplayNameAttribute.cs
- SqlHelper.cs
- CreatingCookieEventArgs.cs
- SQLGuid.cs
- ModelUIElement3D.cs
- StsCommunicationException.cs
- ContentControl.cs
- AssemblyAttributesGoHere.cs
- Soap12FormatExtensions.cs
- IdentityReference.cs
- RowBinding.cs
- PiiTraceSource.cs
- ResourceExpressionBuilder.cs
- LogReserveAndAppendState.cs
- ClientFormsAuthenticationCredentials.cs
- XmlLinkedNode.cs
- CubicEase.cs
- InternalBufferManager.cs
- UpDownEvent.cs
- ControlBuilderAttribute.cs
- WinEventTracker.cs
- StrokeCollection2.cs
- FormViewRow.cs
- _HeaderInfoTable.cs
- DebugView.cs
- PriorityRange.cs
- UpdateProgress.cs
- NameScope.cs
- LineBreak.cs
- EdmError.cs
- ResourcePermissionBaseEntry.cs
- FontSizeConverter.cs
- SystemIcons.cs
- MethodBuilder.cs