Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DebugView.cs
- OletxDependentTransaction.cs
- XPathAncestorQuery.cs
- LineServices.cs
- PageContent.cs
- SQLStringStorage.cs
- SettingsAttributeDictionary.cs
- LockingPersistenceProvider.cs
- RegexCompilationInfo.cs
- ColumnHeader.cs
- EntityContainerEmitter.cs
- WindowsNonControl.cs
- TextDecorationLocationValidation.cs
- SqlMethodAttribute.cs
- DesignerTransaction.cs
- DataRow.cs
- OdbcConnectionPoolProviderInfo.cs
- AppDomain.cs
- NamedElement.cs
- InvalidPipelineStoreException.cs
- ModelServiceImpl.cs
- SingleAnimationBase.cs
- WebBrowser.cs
- XmlEntityReference.cs
- DescriptionAttribute.cs
- DefaultPropertyAttribute.cs
- XmlDataSourceView.cs
- DataSourceView.cs
- DataKeyCollection.cs
- CodeTypeDeclarationCollection.cs
- ListManagerBindingsCollection.cs
- WindowsMenu.cs
- MenuAutoFormat.cs
- Semaphore.cs
- Item.cs
- HttpException.cs
- SystemException.cs
- ZipPackage.cs
- ValidationErrorCollection.cs
- SqlMethods.cs
- XsdDataContractExporter.cs
- PerformanceCounter.cs
- AuthenticationConfig.cs
- HttpServerUtilityBase.cs
- HostedNamedPipeTransportManager.cs
- XmlDomTextWriter.cs
- HtmlElementCollection.cs
- XmlSchemaAppInfo.cs
- MultiPartWriter.cs
- SqlDependencyListener.cs
- PerformanceCounterNameAttribute.cs
- ConfigurationPropertyAttribute.cs
- DbConnectionPoolOptions.cs
- CodeDesigner.cs
- CodeParameterDeclarationExpressionCollection.cs
- InheritanceAttribute.cs
- StructuredTypeEmitter.cs
- UriScheme.cs
- DataPagerFieldItem.cs
- RegionInfo.cs
- BaseDataBoundControl.cs
- AutomationElementCollection.cs
- ScrollBarAutomationPeer.cs
- EntityViewContainer.cs
- SqlDataSourceSelectingEventArgs.cs
- MatrixUtil.cs
- XmlObjectSerializerWriteContext.cs
- WinInetCache.cs
- ErrorRuntimeConfig.cs
- WindowsFont.cs
- ArrayWithOffset.cs
- UnmanagedMemoryStream.cs
- SetMemberBinder.cs
- DurableOperationAttribute.cs
- Opcode.cs
- Variable.cs
- ReflectionHelper.cs
- TemplateColumn.cs
- BinaryMethodMessage.cs
- Util.cs
- DiscreteKeyFrames.cs
- XmlIterators.cs
- AssociationTypeEmitter.cs
- RegexWriter.cs
- RenderOptions.cs
- OleDbEnumerator.cs
- ParameterEditorUserControl.cs
- GridView.cs
- CommandLibraryHelper.cs
- Window.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- Cursor.cs
- DivideByZeroException.cs
- WindowsPrincipal.cs
- RootBrowserWindowProxy.cs
- FormViewCommandEventArgs.cs
- MouseWheelEventArgs.cs
- XPathItem.cs
- SHA512Managed.cs
- DynamicILGenerator.cs