コード例 #1
0
    /// <summary>
    /// Disposes the notes whats new data source.
    /// </summary>
    /// <param name="sender">The sender.</param>
    /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs"/> instance containing the event data.</param>
    protected void DisposeNotesWhatsNewDataSource(object sender, ObjectDataSourceDisposingEventArgs e)
    {
        // Get the instance of the business object that the ObjectDataSource is working with.
        WhatsNewRequest <IHistory> dataSource = e.ObjectInstance as WhatsNewRequest <IHistory>;

        // Cancel the event, so that the object will not be Disposed if it implements IDisposable.
        e.Cancel = true;
    }
コード例 #2
0
        /// <summary />
        protected virtual void OnObjectDisposing(object sender, ObjectDataSourceDisposingEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("e");
            }

            e.Cancel = true;
        }
コード例 #3
0
    protected void ResultsObjectDataSource_ObjectDisposing(object sender, ObjectDataSourceDisposingEventArgs e)
    {
        Agents agents = e.ObjectInstance as Agents;

        if (Session["AgentsViewState"] as Agents == null)
        {
            Session["AgentsViewState"] = agents;
        }

        e.Cancel = true;
    }
コード例 #4
0
 protected void DisposeUserGroupsDataSource(object sender, ObjectDataSourceDisposingEventArgs e)
 {
     e.Cancel = true;
 }
コード例 #5
0
 protected void ODS_Details_ObjectDisposing(object sender, ObjectDataSourceDisposingEventArgs e)
 {
     MESPageService = e.ObjectInstance as Disassociate;
     e.Cancel       = true;
 }
コード例 #6
0
    /// <summary>
    /// Disposes the notes whats new data source.
    /// </summary>
    /// <param name="sender">The sender.</param>
    /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs"/> instance containing the event data.</param>
    protected void DisposeNotesWhatsNewDataSource(object sender, ObjectDataSourceDisposingEventArgs e)
    {
        // Get the instance of the business object that the ObjectDataSource is working with.
        WhatsNewRequest<IHistory> dataSource = e.ObjectInstance as WhatsNewRequest<IHistory>;

        // Cancel the event, so that the object will not be Disposed if it implements IDisposable.
        e.Cancel = true;
    }
コード例 #7
0
 /// <summary>
 /// Disposes the targets view data source.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs"/> instance containing the event data.</param>
 protected void DisposeTargetsViewDataSource(object sender, ObjectDataSourceDisposingEventArgs e)
 {
     // Cancel the event, so that the object will not be Disposed if it implements IDisposable.
     e.Cancel = true;
 }
コード例 #8
0
 /// <summary>
 /// Disposes the targets view data source.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs"/> instance containing the event data.</param>
 protected void DisposeTargetsViewDataSource(object sender, ObjectDataSourceDisposingEventArgs e)
 {
     // Cancel the event, so that the object will not be Disposed if it implements IDisposable.
     e.Cancel = true;
 }
コード例 #9
0
    /// <summary>
    /// Disposes the targets view data source.
    /// </summary>
    /// <param name="sender">The sender.</param>
    /// <param name="e">The <see cref="System.Web.UI.WebControls.ObjectDataSourceDisposingEventArgs"/> instance containing the event data.</param>
    protected void DisposeTargetsViewDataSource(object sender, ObjectDataSourceDisposingEventArgs e)
    {
        // Get the instance of the business object that the ObjectDataSource is working with.
        TargetsViewDataSource dataSource = e.ObjectInstance as TargetsViewDataSource;

        // Cancel the event, so that the object will
        // not be Disposed if it implements IDisposable.
        e.Cancel = true;
    }
コード例 #10
0
ファイル: MovimentoGrid.ascx.cs プロジェクト: radtek/appz
 protected void MovimentosObjectData_ObjectDisposing(object sender, ObjectDataSourceDisposingEventArgs e)
 {
     e.Cancel = true;
 }
コード例 #11
0
 protected void DisposeApplicationLogDataSource(object sender, ObjectDataSourceDisposingEventArgs e)
 {
     e.Cancel = true;
 }
コード例 #12
0
 protected void ObjectDataSource1_ObjectDisposing(object sender, ObjectDataSourceDisposingEventArgs e)
 {
 }