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
- ImageInfo.cs
- TextElement.cs
- CopyOnWriteList.cs
- ItemContainerPattern.cs
- DictionaryTraceRecord.cs
- _AuthenticationState.cs
- PaperSize.cs
- DiagnosticTraceSource.cs
- DateTimePicker.cs
- RelativeSource.cs
- ListControl.cs
- HtmlValidationSummaryAdapter.cs
- DesignerListAdapter.cs
- KeyedHashAlgorithm.cs
- OutOfProcStateClientManager.cs
- DependencyPropertyKind.cs
- SoapBinding.cs
- WebPartManagerInternals.cs
- CacheHelper.cs
- _IPv4Address.cs
- InvalidDataContractException.cs
- WindowsAuthenticationEventArgs.cs
- XmlExceptionHelper.cs
- AssemblyNameProxy.cs
- RepeatButtonAutomationPeer.cs
- WpfSharedBamlSchemaContext.cs
- UrlPath.cs
- XmlAttributeCache.cs
- OpenCollectionAsyncResult.cs
- DictionarySectionHandler.cs
- SmiEventSink.cs
- NullableLongMinMaxAggregationOperator.cs
- Hashtable.cs
- TreeView.cs
- XamlPoint3DCollectionSerializer.cs
- ChtmlPageAdapter.cs
- DocumentPageHost.cs
- Positioning.cs
- StylusButton.cs
- AssemblyBuilder.cs
- ScrollViewerAutomationPeer.cs
- XmlCharType.cs
- ObjectDataSourceEventArgs.cs
- WindowsIPAddress.cs
- iisPickupDirectory.cs
- Brushes.cs
- StringFunctions.cs
- returneventsaver.cs
- HtmlControlAdapter.cs
- HtmlMeta.cs
- ExpressionStringBuilder.cs
- VariableQuery.cs
- FixedSOMFixedBlock.cs
- ForeignKeyConstraint.cs
- DbConnectionInternal.cs
- VirtualizingStackPanel.cs
- CheckBox.cs
- OdbcParameterCollection.cs
- GridViewCancelEditEventArgs.cs
- Comparer.cs
- TextBox.cs
- NullableIntMinMaxAggregationOperator.cs
- SecurityValidationBehavior.cs
- ExecutionProperties.cs
- LineGeometry.cs
- RestClientProxyHandler.cs
- ColorConvertedBitmapExtension.cs
- ListParaClient.cs
- FreezableCollection.cs
- HostedBindingBehavior.cs
- ContentPresenter.cs
- AlgoModule.cs
- OutputCacheProfileCollection.cs
- SafeFileMapViewHandle.cs
- CreateUserWizard.cs
- QueryOutputWriter.cs
- serverconfig.cs
- ReplyChannelBinder.cs
- Comparer.cs
- SuppressMergeCheckAttribute.cs
- GenericTransactionFlowAttribute.cs
- DataTableClearEvent.cs
- PlainXmlWriter.cs
- String.cs
- StateManagedCollection.cs
- HandleRef.cs
- StringAnimationUsingKeyFrames.cs
- TraceContextEventArgs.cs
- EndpointDiscoveryMetadataCD1.cs
- PrinterResolution.cs
- KeyboardEventArgs.cs
- StateRuntime.cs
- EntityKey.cs
- HandlerMappingMemo.cs
- MaskDescriptor.cs
- ChtmlPageAdapter.cs
- SchemaTableOptionalColumn.cs
- SqlProfileProvider.cs
- Message.cs
- AppDomainProtocolHandler.cs