Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / UpdatePanelControlTrigger.cs / 1305376 / 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.Web; using System.Web.UI; using System.Web.Resources; 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.Web; using System.Web.UI; using System.Web.Resources; 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
- ContextMenu.cs
- SegmentInfo.cs
- DynamicPropertyHolder.cs
- SymLanguageVendor.cs
- RepeaterItem.cs
- X509ChainPolicy.cs
- WebControlsSection.cs
- EventArgs.cs
- DirectoryObjectSecurity.cs
- ExpressionList.cs
- KeyValuePair.cs
- DmlSqlGenerator.cs
- DecimalAverageAggregationOperator.cs
- XmlCompatibilityReader.cs
- EdmItemError.cs
- XmlSchemaInferenceException.cs
- ClaimTypes.cs
- SEHException.cs
- TranslateTransform3D.cs
- SizeF.cs
- OutOfMemoryException.cs
- MediaElement.cs
- RegexReplacement.cs
- CultureNotFoundException.cs
- Literal.cs
- BitmapFrameDecode.cs
- HostingPreferredMapPath.cs
- DataGridCellItemAutomationPeer.cs
- CodeSubDirectory.cs
- UserPreferenceChangedEventArgs.cs
- ClientConvert.cs
- XPathDescendantIterator.cs
- OdbcError.cs
- Range.cs
- ProfileService.cs
- webproxy.cs
- DataStorage.cs
- DoubleSumAggregationOperator.cs
- CachedTypeface.cs
- WebPartDisplayModeCollection.cs
- TextEditorCopyPaste.cs
- OleDbParameterCollection.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- ConnectionConsumerAttribute.cs
- TextSelectionHighlightLayer.cs
- DataGrid.cs
- Int64Converter.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- HtmlTernaryTree.cs
- XPathBinder.cs
- SizeConverter.cs
- ContractCodeDomInfo.cs
- Lasso.cs
- AttributeAction.cs
- TypeUtil.cs
- AuthenticationManager.cs
- FilterEventArgs.cs
- MenuItem.cs
- DiffuseMaterial.cs
- TrustLevel.cs
- AttachmentService.cs
- NullableBoolConverter.cs
- FreezableOperations.cs
- BufferedWebEventProvider.cs
- MissingMethodException.cs
- MouseEventArgs.cs
- RoleManagerEventArgs.cs
- ElementHost.cs
- StoreItemCollection.Loader.cs
- ApplicationSecurityManager.cs
- Ports.cs
- WebConfigurationManager.cs
- LoadGrammarCompletedEventArgs.cs
- AnnotationMap.cs
- PowerModeChangedEventArgs.cs
- UnhandledExceptionEventArgs.cs
- InheritanceContextChangedEventManager.cs
- InlineUIContainer.cs
- AccessViolationException.cs
- RsaKeyIdentifierClause.cs
- ServiceRouteHandler.cs
- NamespaceCollection.cs
- TypeReference.cs
- AnnotationResourceCollection.cs
- MultipleViewProviderWrapper.cs
- CqlParserHelpers.cs
- SerializationInfoEnumerator.cs
- OrderingInfo.cs
- Tile.cs
- CryptoHelper.cs
- ProxyWebPartManager.cs
- GPRECT.cs
- SmiGettersStream.cs
- InputLanguageManager.cs
- PointCollection.cs
- TextAnchor.cs
- ReceiveMessageRecord.cs
- LocationUpdates.cs
- _ListenerResponseStream.cs
- TraceHandlerErrorFormatter.cs