We have 2 connected Web parts (Announcement and Region). We would like to see
only announcement for a specific country. Region is a web part (custom list)
with a list of countries and it's located on the Quick Launch bar. It works
(filtering), but after clicking on the Home page the previous choise of
country is not saved.
How to save it going through the site???

RE: web parts connections problem by news

news
Fri Feb 25 17:17:04 CST 2005

WSS doesn's support this this kind of stateful behavior.

You might get around this by testing the HTTP-Referrer value or the ASP.NET
Page.IsPostback property to determine if the current execution occurred
because of a link on another page.

o If not, you would save the current country as a cookie or session
variable .

o If so, you would restieve the cookie or session variable and if it
contained
data, you would simulate a click on that country.

Either way, this would be messy. Also, I'm concerned about your qyuestion,
"How to save it going through the site?" If you want *several* pages to key
off the selected country code, the code could get *really* messy. At some
point, you may need to consider writing custom Web Parts.

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------


"OK" wrote:

> We have 2 connected Web parts (Announcement and Region). We would like to see
> only announcement for a specific country. Region is a web part (custom list)
> with a list of countries and it's located on the Quick Launch bar. It works
> (filtering), but after clicking on the Home page the previous choise of
> country is not saved.
> How to save it going through the site???