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
- SystemIcmpV6Statistics.cs
- EditorZoneBase.cs
- AggregatePushdown.cs
- PolicyAssertionCollection.cs
- ImageUrlEditor.cs
- PathGradientBrush.cs
- NativeMethods.cs
- SwitchDesigner.xaml.cs
- SEHException.cs
- Ops.cs
- CssStyleCollection.cs
- MediaElement.cs
- ObfuscateAssemblyAttribute.cs
- DataGridView.cs
- TableLayoutCellPaintEventArgs.cs
- MetabaseServerConfig.cs
- UnsafeNativeMethods.cs
- Simplifier.cs
- ItemCheckEvent.cs
- CompleteWizardStep.cs
- CodeCatchClause.cs
- TextEditor.cs
- DataReceivedEventArgs.cs
- COAUTHIDENTITY.cs
- Expression.cs
- xamlnodes.cs
- SerializationHelper.cs
- SqlDataSourceCommandEventArgs.cs
- GetPageCompletedEventArgs.cs
- ConfigDefinitionUpdates.cs
- AsyncResult.cs
- BooleanFunctions.cs
- DispatcherObject.cs
- BackoffTimeoutHelper.cs
- AnonymousIdentificationSection.cs
- ComponentFactoryHelpers.cs
- TypeUnloadedException.cs
- GridViewCommandEventArgs.cs
- PnrpPeerResolverBindingElement.cs
- PeerCollaboration.cs
- ExtentKey.cs
- LineVisual.cs
- GridProviderWrapper.cs
- DictionaryCustomTypeDescriptor.cs
- AnnotationService.cs
- Int16Storage.cs
- xdrvalidator.cs
- MimeTypePropertyAttribute.cs
- ExpressionNode.cs
- StrokeSerializer.cs
- PersonalizationProviderCollection.cs
- TraceHwndHost.cs
- ResourceDisplayNameAttribute.cs
- ReliableInputConnection.cs
- _UriSyntax.cs
- ConvertTextFrag.cs
- UnsafeNativeMethods.cs
- GridViewCellAutomationPeer.cs
- NumericExpr.cs
- SystemKeyConverter.cs
- MessageQueueAccessControlEntry.cs
- ScriptComponentDescriptor.cs
- PageTheme.cs
- ListViewInsertEventArgs.cs
- DeviceContext2.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ECDiffieHellmanCng.cs
- XmlCountingReader.cs
- CodeAttributeDeclaration.cs
- Timer.cs
- PropertyGridCommands.cs
- SafeCryptContextHandle.cs
- ProcessModelInfo.cs
- WebPartDescription.cs
- ApplicationInfo.cs
- OleDbCommand.cs
- ConstructorBuilder.cs
- LinqDataSourceValidationException.cs
- AddInActivator.cs
- EventLogInformation.cs
- DocumentCollection.cs
- Control.cs
- FileBasedResourceGroveler.cs
- BulletedList.cs
- MetadataArtifactLoaderComposite.cs
- Size.cs
- Polygon.cs
- LiteralControl.cs
- TextOutput.cs
- CapabilitiesState.cs
- TextEffect.cs
- MetadataItemSerializer.cs
- WbemException.cs
- WindowsListView.cs
- ShapeTypeface.cs
- WebPartsSection.cs
- XmlAttributeCache.cs
- AddressingProperty.cs
- Pair.cs
- KeyGestureConverter.cs