Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / ui / UpdatePanelControlTrigger.cs / 1 / UpdatePanelControlTrigger.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Security.Permissions; using System.Web; using System.Web.UI; using System.Web.Resources; [ AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal), AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal) ] public abstract class UpdatePanelControlTrigger : UpdatePanelTrigger { private string _controlID; protected UpdatePanelControlTrigger() { } [ Category("Behavior"), DefaultValue(""), IDReferenceProperty(), ResourceDescription("UpdatePanelControlTrigger_ControlID"), SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "ID") ] public string ControlID { get { return _controlID ?? String.Empty; } set { _controlID = value; } } protected Control FindTargetControl(bool searchNamingContainers) { if (String.IsNullOrEmpty(ControlID)) { throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, AtlasWeb.UpdatePanelControlTrigger_NoControlID, Owner.ID)); } Control foundControl = ControlUtil.FindTargetControl(ControlID, Owner, searchNamingContainers); if (foundControl == null) { throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, AtlasWeb.UpdatePanelControlTrigger_ControlNotFound, ControlID, Owner.ID)); } return foundControl; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Security.Permissions; using System.Web; using System.Web.UI; using System.Web.Resources; [ AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal), AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal) ] public abstract class UpdatePanelControlTrigger : UpdatePanelTrigger { private string _controlID; protected UpdatePanelControlTrigger() { } [ Category("Behavior"), DefaultValue(""), IDReferenceProperty(), ResourceDescription("UpdatePanelControlTrigger_ControlID"), SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "ID") ] public string ControlID { get { return _controlID ?? String.Empty; } set { _controlID = value; } } protected Control FindTargetControl(bool searchNamingContainers) { if (String.IsNullOrEmpty(ControlID)) { throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, AtlasWeb.UpdatePanelControlTrigger_NoControlID, Owner.ID)); } Control foundControl = ControlUtil.FindTargetControl(ControlID, Owner, searchNamingContainers); if (foundControl == null) { throw new InvalidOperationException(String.Format(CultureInfo.InvariantCulture, AtlasWeb.UpdatePanelControlTrigger_ControlNotFound, ControlID, Owner.ID)); } return foundControl; } } } // 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
- MergeFilterQuery.cs
- BinHexEncoder.cs
- UrlAuthFailedErrorFormatter.cs
- GeometryValueSerializer.cs
- WmlObjectListAdapter.cs
- DigitShape.cs
- WebException.cs
- Model3D.cs
- OleServicesContext.cs
- LightweightCodeGenerator.cs
- ProcessHost.cs
- CrossContextChannel.cs
- SoapCodeExporter.cs
- MessageHeaderT.cs
- FileClassifier.cs
- SettingsBindableAttribute.cs
- GraphicsPath.cs
- BamlBinaryReader.cs
- KnownTypesHelper.cs
- UpdateExpressionVisitor.cs
- DelegateHelpers.Generated.cs
- ContainerUtilities.cs
- MessagingDescriptionAttribute.cs
- AutoScrollExpandMessageFilter.cs
- InternalResources.cs
- Msec.cs
- TransformerConfigurationWizardBase.cs
- NumericExpr.cs
- WebPartVerb.cs
- EventLogReader.cs
- DocumentEventArgs.cs
- FlowSwitchLink.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ExtenderControl.cs
- Geometry3D.cs
- ReadWriteSpinLock.cs
- DocumentAutomationPeer.cs
- ProtocolElement.cs
- XsltFunctions.cs
- regiisutil.cs
- DropShadowEffect.cs
- ColumnTypeConverter.cs
- __ComObject.cs
- XmlSchemaCollection.cs
- IntSecurity.cs
- ComponentDispatcher.cs
- XPathNavigatorReader.cs
- UnmanagedMarshal.cs
- mansign.cs
- JoinGraph.cs
- TabOrder.cs
- ExpressionEditor.cs
- DoubleKeyFrameCollection.cs
- SerializationSectionGroup.cs
- FormViewDeletedEventArgs.cs
- MeasurementDCInfo.cs
- ReaderContextStackData.cs
- COSERVERINFO.cs
- IChannel.cs
- DataBindingValueUIHandler.cs
- SessionSwitchEventArgs.cs
- OutputCacheSettingsSection.cs
- CodeAssignStatement.cs
- InstanceNormalEvent.cs
- VirtualPathProvider.cs
- MailWebEventProvider.cs
- EventKeyword.cs
- AccessibleObject.cs
- PointLight.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- SqlFacetAttribute.cs
- XsltContext.cs
- DesignTimeTemplateParser.cs
- ControlBindingsCollection.cs
- OpacityConverter.cs
- XmlWhitespace.cs
- _NegoStream.cs
- TextFindEngine.cs
- FocusManager.cs
- WMIGenerator.cs
- FileDialog.cs
- CustomLineCap.cs
- entityreference_tresulttype.cs
- GregorianCalendarHelper.cs
- WebPartAddingEventArgs.cs
- Int32CollectionConverter.cs
- WindowsHyperlink.cs
- Win32PrintDialog.cs
- AQNBuilder.cs
- PasswordPropertyTextAttribute.cs
- _AuthenticationState.cs
- BooleanFunctions.cs
- StorageMappingItemCollection.cs
- ApplicationServiceHelper.cs
- IdentityHolder.cs
- ApplicationHost.cs
- ChildTable.cs
- documentation.cs
- DateTimeConverter.cs
- GeneralTransformGroup.cs