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
- HttpClientCertificate.cs
- Rfc2898DeriveBytes.cs
- HttpProfileGroupBase.cs
- WebPartMinimizeVerb.cs
- DbDeleteCommandTree.cs
- SupportsPreviewControlAttribute.cs
- MimeXmlReflector.cs
- RegexInterpreter.cs
- ByValueEqualityComparer.cs
- RegexFCD.cs
- Vector3DAnimationBase.cs
- WorkflowMessageEventHandler.cs
- ellipse.cs
- shaperfactoryquerycachekey.cs
- LightweightCodeGenerator.cs
- GenericUI.cs
- LookupNode.cs
- SoapMessage.cs
- WindowsAltTab.cs
- IxmlLineInfo.cs
- DbInsertCommandTree.cs
- Int32Collection.cs
- File.cs
- TextParaLineResult.cs
- ConfigurationElementProperty.cs
- Stackframe.cs
- _CacheStreams.cs
- ReadOnlyDataSource.cs
- NodeFunctions.cs
- HttpHeaderCollection.cs
- ComEventsSink.cs
- DebuggerAttributes.cs
- DataControlFieldTypeEditor.cs
- RightsManagementEncryptedStream.cs
- EventLogPermissionEntry.cs
- TemplateBamlRecordReader.cs
- SimpleTableProvider.cs
- SQLInt32.cs
- ContextBase.cs
- OleDbTransaction.cs
- LocalizationParserHooks.cs
- WinFormsSpinner.cs
- EncryptedHeader.cs
- MouseActionValueSerializer.cs
- SqlFunctionAttribute.cs
- ComboBoxAutomationPeer.cs
- GridEntryCollection.cs
- DescendantBaseQuery.cs
- PathFigure.cs
- ButtonBaseAdapter.cs
- SqlDataSourceView.cs
- HtmlButton.cs
- XmlMtomReader.cs
- ImageSource.cs
- SystemColors.cs
- smtppermission.cs
- BrowserCapabilitiesCodeGenerator.cs
- StaticExtensionConverter.cs
- Mutex.cs
- SchemaCollectionPreprocessor.cs
- SimpleWebHandlerParser.cs
- SettingsPropertyValue.cs
- BuildProviderCollection.cs
- DbMetaDataFactory.cs
- TraceLog.cs
- WebConfigurationHostFileChange.cs
- ViewLoader.cs
- TypeNameConverter.cs
- WebScriptEndpointElement.cs
- InputLanguageProfileNotifySink.cs
- DataGridBoolColumn.cs
- Unit.cs
- HtmlInputButton.cs
- SelectionHighlightInfo.cs
- MetadataCache.cs
- XmlReflectionImporter.cs
- HttpHeaderCollection.cs
- Lasso.cs
- OptionalColumn.cs
- CellTreeNode.cs
- FtpRequestCacheValidator.cs
- AssemblySettingAttributes.cs
- _FixedSizeReader.cs
- SequentialOutput.cs
- SafeHandle.cs
- DbExpressionVisitor_TResultType.cs
- DataGridViewImageColumn.cs
- CacheForPrimitiveTypes.cs
- FunctionQuery.cs
- ClosureBinding.cs
- SymbolTable.cs
- PeerObject.cs
- WebPartAuthorizationEventArgs.cs
- UrlPropertyAttribute.cs
- _Win32.cs
- HwndHostAutomationPeer.cs
- PrintPreviewGraphics.cs
- ListSourceHelper.cs
- Token.cs
- Relationship.cs