Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / xsp / System / Web / Extensions / ui / UpdatePanelControlTrigger.cs / 2 / 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
- ProcessHostFactoryHelper.cs
- CompositeDuplexBindingElement.cs
- SessionStateUtil.cs
- TextViewSelectionProcessor.cs
- ProgressChangedEventArgs.cs
- RowSpanVector.cs
- KeyValuePairs.cs
- ComponentResourceKeyConverter.cs
- TransformerInfo.cs
- LayoutSettings.cs
- BitmapEffectDrawing.cs
- Wow64ConfigurationLoader.cs
- ConfigXmlText.cs
- Html32TextWriter.cs
- XpsS0ValidatingLoader.cs
- DesignerListAdapter.cs
- ContainerUtilities.cs
- ColumnHeader.cs
- EnumerableCollectionView.cs
- Int32KeyFrameCollection.cs
- TextTreeTextElementNode.cs
- HtmlUtf8RawTextWriter.cs
- WebPartDisplayModeCancelEventArgs.cs
- WebCategoryAttribute.cs
- FixedFlowMap.cs
- WebPartConnectionsCancelEventArgs.cs
- GC.cs
- XPathDocument.cs
- Rijndael.cs
- StringCollection.cs
- TrustLevelCollection.cs
- EventLogger.cs
- UserThread.cs
- ExpressionLexer.cs
- wpf-etw.cs
- FacetChecker.cs
- CharKeyFrameCollection.cs
- ButtonBaseDesigner.cs
- ReceiveErrorHandling.cs
- BookmarkResumptionRecord.cs
- SizeLimitedCache.cs
- WrapperEqualityComparer.cs
- prefixendpointaddressmessagefilter.cs
- Int32CollectionConverter.cs
- ServiceDescriptions.cs
- EnumerableRowCollection.cs
- FragmentQueryKB.cs
- BackgroundWorker.cs
- SqlCommandBuilder.cs
- UnsafeNativeMethods.cs
- PropertyGrid.cs
- XmlnsPrefixAttribute.cs
- ParserOptions.cs
- BadImageFormatException.cs
- PageAdapter.cs
- ContainerControl.cs
- DynamicValidator.cs
- BaseTemplateParser.cs
- QueryRewriter.cs
- BulletChrome.cs
- ManagementObjectCollection.cs
- HandlerFactoryCache.cs
- EntityStoreSchemaGenerator.cs
- Tag.cs
- RNGCryptoServiceProvider.cs
- CqlLexer.cs
- XmlDataCollection.cs
- WebBrowserHelper.cs
- WebBrowserBase.cs
- ZipIOCentralDirectoryFileHeader.cs
- AutoGeneratedField.cs
- BitmapEffectDrawingContent.cs
- Win32.cs
- SchemaElementLookUpTable.cs
- TreeViewImageKeyConverter.cs
- HitTestWithPointDrawingContextWalker.cs
- UpdateCommandGenerator.cs
- DiscoveryClientBindingElement.cs
- RelationshipFixer.cs
- HttpWebRequest.cs
- WebPartCatalogCloseVerb.cs
- NoneExcludedImageIndexConverter.cs
- XmlAttributes.cs
- ObjectSelectorEditor.cs
- SmiContextFactory.cs
- ProfileEventArgs.cs
- UIElement3DAutomationPeer.cs
- XmlSchemaSimpleTypeRestriction.cs
- DependentList.cs
- TimeSpanSecondsConverter.cs
- NetworkInformationException.cs
- TextDecorationCollectionConverter.cs
- RoutedEventHandlerInfo.cs
- BuildDependencySet.cs
- StrokeNode.cs
- Operator.cs
- SapiGrammar.cs
- Aggregates.cs
- ConfigXmlAttribute.cs
- SurrogateSelector.cs