G
George Leithead
Hi all,
I have a requirement to implement a Search Interface component. I
would like to implement this using three different components, for
maximum flexibility.
The first two are "Basic" search and "Advanced Search". Both will use
the same back-end logic to put the search together. I'm using a
WebControl for both of these and overriding the CreateChildControls to
composite controls together (textbox, button, etc.).
The third component would be the "Search Results" component. I want to
base this control on a DataGrid.
The advice I need is how to get the search query from either of the
first two components to the Search Results component? I would like for
the Search Results to 'listen' for an event from one of the other two
components. How do I go about this? I don't want to have to put code
into the ASPX page to handle the communication between the two
controls.
Any advice, and direction of examples (in C#) would be fantastic and
much appreciated.
George
I have a requirement to implement a Search Interface component. I
would like to implement this using three different components, for
maximum flexibility.
The first two are "Basic" search and "Advanced Search". Both will use
the same back-end logic to put the search together. I'm using a
WebControl for both of these and overriding the CreateChildControls to
composite controls together (textbox, button, etc.).
The third component would be the "Search Results" component. I want to
base this control on a DataGrid.
The advice I need is how to get the search query from either of the
first two components to the Search Results component? I would like for
the Search Results to 'listen' for an event from one of the other two
components. How do I go about this? I don't want to have to put code
into the ASPX page to handle the communication between the two
controls.
Any advice, and direction of examples (in C#) would be fantastic and
much appreciated.
George