Question: Im using ASPxPopUpControll in which I have ASPxCallBack panel. THis CallbackPanel was embeded there because I wanted to have solution based on callbacks despite of reloading page each time.

In this CallBackPanel I've embeded asp:Wizard control. 

What I want to achive is get rid of postbacks after clicking next previous etc buttons in this wizzard.

Any hints?

Maybe there is other way to create nice wizard without any postbacks ?

thanks for help

Answer: 
I think you need a subquery joining the event table with an aggregation of itself returning only the min(event dates)

```
SELECT
contact.id,min_created,cash.id2    -- the cash linked to the first event
,eve.id      -- the first event linked to the contact    
FROM _contact contact 
INNER JOIN _table2 tb2  ON contact.id = tb2.id1
INNER JOIN _event eve  ON tb2.id2 = eve.id
inner join (select id, date_created as min_created from _event group by id) eve_min
on eve_min.id = eve.id and eve_min.min_created = eve.date_created 
INNER JOIN _cashtable cash  ON cash.contact_id = contact.id

```
You can select the Min ID for both the event and cash, which should be the oldest of each item, assuming there aren't any odd variations to the insert and linking logic for the entries.

The other alternative is adding clauses to the joins to restrict it to the first or MIN ID, then you won't need the grouping.