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
- RichTextBox.cs
- PeerServiceMessageContracts.cs
- Method.cs
- InstanceNameConverter.cs
- SystemException.cs
- NullableConverter.cs
- RenameRuleObjectDialog.Designer.cs
- Queue.cs
- _SslSessionsCache.cs
- ContentPathSegment.cs
- DataServiceQuery.cs
- ChannelFactoryRefCache.cs
- RunInstallerAttribute.cs
- XmlCountingReader.cs
- HttpListenerResponse.cs
- Size.cs
- HttpCacheParams.cs
- TransformConverter.cs
- WinFormsComponentEditor.cs
- RootNamespaceAttribute.cs
- CodeCompiler.cs
- WpfSharedXamlSchemaContext.cs
- TextFormatterContext.cs
- WebPartsPersonalization.cs
- XmlSchemaNotation.cs
- ToolStripGrip.cs
- PermissionListSet.cs
- HtmlToClrEventProxy.cs
- Formatter.cs
- BasicExpressionVisitor.cs
- BadImageFormatException.cs
- MulticastDelegate.cs
- TabRenderer.cs
- Page.cs
- ParameterCollection.cs
- LinkDescriptor.cs
- DetailsViewDeleteEventArgs.cs
- ArraySegment.cs
- PopupRoot.cs
- DataGridItemCollection.cs
- TextParentUndoUnit.cs
- ValidationErrorCollection.cs
- SchemaNames.cs
- CLRBindingWorker.cs
- HttpConfigurationContext.cs
- DbConnectionPoolCounters.cs
- ClientBuildManager.cs
- Code.cs
- WindowsSspiNegotiation.cs
- HtmlControlPersistable.cs
- Win32SafeHandles.cs
- WindowCollection.cs
- _Semaphore.cs
- IOException.cs
- TextModifierScope.cs
- RoleManagerSection.cs
- MediaPlayer.cs
- CustomLineCap.cs
- CircleHotSpot.cs
- SrgsToken.cs
- WorkflowDispatchContext.cs
- FixedFindEngine.cs
- BindableTemplateBuilder.cs
- DocumentAutomationPeer.cs
- DropAnimation.xaml.cs
- DoWorkEventArgs.cs
- FaultContext.cs
- ParenExpr.cs
- SafeHandle.cs
- TemplateInstanceAttribute.cs
- SpeechSynthesizer.cs
- ChannelServices.cs
- serverconfig.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- MarshalByValueComponent.cs
- DBSchemaTable.cs
- GraphicsContext.cs
- DuplicateWaitObjectException.cs
- DictationGrammar.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- BamlTreeNode.cs
- ZipPackagePart.cs
- ExpressionConverter.cs
- WpfKnownTypeInvoker.cs
- SortedDictionary.cs
- XmlAttributeCache.cs
- MultiView.cs
- CompositeControl.cs
- PropertyDescriptor.cs
- XmlTextReader.cs
- CustomSignedXml.cs
- TemplateBaseAction.cs
- XslCompiledTransform.cs
- XmlILConstructAnalyzer.cs
- XmlImplementation.cs
- EncodingNLS.cs
- MenuItem.cs
- TextServicesDisplayAttributePropertyRanges.cs
- SQLBinaryStorage.cs
- SqlNotificationEventArgs.cs