Thanks Paul, this is great.
One thing I am having problems with though is I am trying to make it so that if I was on say page 3 or the list, after I do the View or Edit, I come back to page 3.
I've tried using the [pagenumber,System] variable and storing a session variable, but I still have issues when the call is through ajax.
If I set the [pagenumber,System] variable to a fixed page# in the else portion of the code, whenever I come in via a page load it sets the resultset to that page, but even with that code hardcoded in if its an ajax call, it goes back to page 1.
Does anyone have an answer to this?
thks,
Phil