/// <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; }
/// <summary /> protected virtual void OnObjectDisposing(object sender, ObjectDataSourceDisposingEventArgs e) { if (e == null) { throw new ArgumentNullException("e"); } e.Cancel = true; }
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; }
protected void DisposeUserGroupsDataSource(object sender, ObjectDataSourceDisposingEventArgs e) { e.Cancel = true; }
protected void ODS_Details_ObjectDisposing(object sender, ObjectDataSourceDisposingEventArgs e) { MESPageService = e.ObjectInstance as Disassociate; e.Cancel = true; }
/// <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; }
/// <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; }
/// <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; }
protected void MovimentosObjectData_ObjectDisposing(object sender, ObjectDataSourceDisposingEventArgs e) { e.Cancel = true; }
protected void DisposeApplicationLogDataSource(object sender, ObjectDataSourceDisposingEventArgs e) { e.Cancel = true; }
protected void ObjectDataSource1_ObjectDisposing(object sender, ObjectDataSourceDisposingEventArgs e) { }