Hello Group,

In ASP.NET MVC 3.5, I have a basic page that displays records returned
from some parameters entered.... nothing special.  Below the results,
I give the user the option to page(using the arrows >, >>, <, <<)
through the results as well as select how many records they wish to
display per page (10,20,30,40).  Here is the code that displays this:

          <div id="pager" class="pager">
                <form>
                        <img src="<%=Url.Content("~/Content/first.png") %>"
class="first"/>
                        <img src="<%=Url.Content("~/Content/prev.png") %>"
class="prev"/>
                        <input type="text" class="pagedisplay"/>
                        <img src="<%=Url.Content("~/Content/next.png") %>"
class="next"/>
                        <img src="<%=Url.Content("~/Content/last.png") %>"
class="last"/>
                        Number of Records per page: <select class="pagesize">
                                <option selected="selected" 
value="10">10</option>
                                <option value="20">20</option>
                                <option value="30">30</option>
                                <option value="40">40</option>
                        </select>
                </form>
        </div>

Here is where my question comes into play.  Once the user sees the
record sets, he can click on a record and view more details about it.
On the details page, there is a button that states "Return to Query
Page".  If you click the button it takes you back to the query page
where as of right now, the original query criteria is preserved but
the paging selections selection such as page "5/35" and "30" records
per page are lost and it is back to the default of "1/76" and "10"
records per page.  I would like the paging stuff to also holds its
values as well. Does anyone know how this can be done?

thanks in advance.

Lee

Reply via email to