Hi All,

Does anyone know how to combine url routing with pagination?


Regular Pagination:
        #blockcomponent(DiggStylePagination with "page=$products"
"renderifonlyonepage=false")
        #link
        <button type="button"
onclick="location.href='searchbypage.ashx?page=$pageIndex';">$text</
button>
        #end
        #end

Trying to combine with Routing but doesnt work:
        #blockcomponent(DiggStylePagination with "page=$products"
"renderifonlyonepage=false")
        #link

        #set($pagedUrl = $Url.For("%{controller='products',
action='searchbypage', params={page=$pageIndex, categoryName=
$CategoryName}"))

        <button type="button" onclick="location.href='$pagedUrl';">
$text</button>
        #end
        #end

Thanks

eyal
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to