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
- ScriptManagerProxy.cs
- FontFamilyIdentifier.cs
- COM2ColorConverter.cs
- CalloutQueueItem.cs
- PageHandlerFactory.cs
- QilIterator.cs
- HtmlInputControl.cs
- JpegBitmapEncoder.cs
- LessThanOrEqual.cs
- DataControlField.cs
- FactoryId.cs
- TemplateBindingExpression.cs
- TripleDESCryptoServiceProvider.cs
- HitTestWithPointDrawingContextWalker.cs
- XPathSingletonIterator.cs
- BinaryFormatterWriter.cs
- FixedBufferAttribute.cs
- CipherData.cs
- WebPartConnectionsEventArgs.cs
- XPathMessageFilterElementComparer.cs
- RegistryKey.cs
- SqlTypeConverter.cs
- MessageBuilder.cs
- ExpressionNode.cs
- Int64AnimationUsingKeyFrames.cs
- EntityDataSourceUtil.cs
- DescriptionAttribute.cs
- ListItemConverter.cs
- QilGenerator.cs
- OleDbErrorCollection.cs
- DateTimeEditor.cs
- FunctionNode.cs
- XamlToRtfParser.cs
- DataServiceRequestException.cs
- DecoderNLS.cs
- ContractAdapter.cs
- DesignerOptionService.cs
- WebControlAdapter.cs
- DataView.cs
- HScrollProperties.cs
- TextViewSelectionProcessor.cs
- ValidationHelper.cs
- DocobjHost.cs
- ProfilePropertyNameValidator.cs
- TextOutput.cs
- DecimalConverter.cs
- URL.cs
- Listbox.cs
- XmlIlGenerator.cs
- FontUnit.cs
- WorkflowViewElement.cs
- SerializerDescriptor.cs
- RemoteWebConfigurationHost.cs
- TableLayoutPanelCellPosition.cs
- ObjectDataSourceView.cs
- RotateTransform3D.cs
- UnionExpr.cs
- CalendarDay.cs
- ControlUtil.cs
- FontFamilyIdentifier.cs
- BitmapEffect.cs
- SafeRightsManagementSessionHandle.cs
- PropertyTabAttribute.cs
- DataGridViewCellLinkedList.cs
- CompositeDataBoundControl.cs
- DetailsViewPagerRow.cs
- ExitEventArgs.cs
- Floater.cs
- EventData.cs
- EntityDataSourceValidationException.cs
- SqlDataSourceFilteringEventArgs.cs
- TextAutomationPeer.cs
- DeviceSpecific.cs
- RawAppCommandInputReport.cs
- Visual3D.cs
- PageContentAsyncResult.cs
- ConfigUtil.cs
- JsonCollectionDataContract.cs
- TypeHelper.cs
- UIInitializationException.cs
- SmtpTransport.cs
- WindowsAltTab.cs
- StringInfo.cs
- XsltConvert.cs
- DocumentPageView.cs
- MediaScriptCommandRoutedEventArgs.cs
- EncodingDataItem.cs
- Point.cs
- KnownTypesProvider.cs
- XmlExceptionHelper.cs
- _NegotiateClient.cs
- Switch.cs
- SocketManager.cs
- RemotingAttributes.cs
- XmlImplementation.cs
- CompatibleIComparer.cs
- control.ime.cs
- ApplicationTrust.cs
- mongolianshape.cs
- PerformanceCounterManager.cs