I have a label based menu from there he can select Region, Product and Agent.
As per his selection corresponding XML should trigger and data should come into dashboard. I have 3 Different charts for 3 different selection. and I am using dynamic visibility to show accordingly.
But the problem is when I am clicking on any selection two XML runs. This causes performance issue.
Triggers can sometimes be a pain - and not using 2008 which provides the connection components makes it even more painful. I know the issue you are talking about - fact is, a “change” is also detected when resetting the value back to it’s original state - hence the two queries running when a selection is made.
In this instance, I’d use a seperate web service return for my selection. Something like returning the datetime from the database in number format ddmmHHss and use a max() function to determine the actual selection. Kinda gimpy but it’s all smoke and mirrors when you’re done anyway…