I’m using two custom controls. One gathers the criteria for a search, and the other displays a list. These two controls need to remain seperate for the time being.
What is the best method of transfering data from the search control, to the list control?
I’m thinking of ViewState, Session or wrapping both within a UpdatePanel and using custom events??
Maybe you can create a delegate and an event to pass a list of searchvalues? This way you can easily add another or multiple display controls in case that ever becomes necessary.
Note that this is just some quick sample code that should be optimized/improved.