Passing parameters from one webpart to another - Thomas

19-Aug-07 10:32:49
Hello,

I'm stuck with following problem. I have two webparts on one page. I would
like to pass parameters from one webpart to another. I used for that the
ConnexionProvider and ConnexionConsumer pattern. All works fine except one
thing.
In the second WebPart (ConnexionConsumer) the data is displayed in a
SPGridView which is bound to ObjectDataSource with SelectMethod set to the
method that retrives data from the data base. The problem is that I noticed
that SelectMethod fires only once, on the firts page render. When I select
values in the first webpart and do the postback (submit) the second webpart
receives values in connexionconsumer method but the select method didn't
fire so the old data is displayed without taking into acount the new
parameters received from the first webpart.
SpGridView is bound to ObjectDataSource in CreateChildrernControls Method. I
would like that ObjectDataSource fires select method on each pagepostback
and take into account values received from firts webpart by
connexionconsumer method. What I'm doing wrong ???

Thanks,

Thomas
reply
Passing parameters from one webpart to another - Thomas 19-Aug-07
        RE: Passing parameters from one webpart to another - humbleapprentic 20-Aug-07
                Re: Passing parameters from one webpart to another - Thomas 20-Aug-07

Navigate to url on button click
  

Search

search




Purchase