pt
-
4/21/2011 10:01:31 AM
Share Data Between Web Parts
Hi, New user here. I'm using a "Latest News" web part to show Events and then using another "Latest News" web part underneath to show News items (both web parts are displayed in a page side bar). (The same web part cannot be used to show a combined list of Events and News items due to client requirements.) My challenge is... if the number of Events is less than a specified number I must add this number to the number of News items to be displayed. For example, 3 Events are to be shown and 3 News items are to be shown. If only 1 Event exists, the number of News items must change to 5. How can I get the number of events and how can I update the number of News items to be shown? (Is something like a ViewState or Session object available? Is my "separate" controls approach correct or should I be developing a custom or "composite" control for this? Many thanks, Paul
|