Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 23rd, 2007, 11:49 AM
Registered User
 
Join Date: Sep 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default GetTableData question

Hi there,

I have the situation as follows:

I have custom web part, which is provider and consumer at the same time. It implements IWebPartTable interface. When I work with my custom web part in "chain mode", which means web part p1 provides data for web part p2 and web part p2 provides data for web part p3 (p1->p2->p3) the data in all web parts are displayed properly. But, if I work with my web part in "parallel mode", which means web part p1 provides data for web parts p2 and p3 (p1->p2, p1->p3), the data only displayed in last web part p3. All connections are there!

The problem is that I must move using TableCallback object from GetTableData method on class level. Before moving it on class level, it looked as follows:

public void GetTableData(TableCallback callback)
{
  callback(_table.Rows);
}

After moving it, it looks as follows:

public sealed class TableProviderWebPart : WebPart, IWebPartTableExtended
{
  private TableCallback tableCallback;

  ...

  public void GetTableData(TableCallback callback)
  {
    this.tableCallback = callback;
  }
}

Do you have any suggestion how to make my web part work in "parallel mode" as well?


Thank you in advance.

Goran Tesic







Similar Threads
Thread Thread Starter Forum Replies Last Post
question maheshraju ASP.NET 2.0 Basics 3 March 13th, 2008 08:54 AM
IF question fizzerchris SQL Language 3 October 17th, 2007 10:41 PM
Question Ashwini Classic ASP Databases 3 January 10th, 2006 07:20 AM
a question gorji C++ Programming 2 August 11th, 2003 07:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.