Hi All,

I am trying to rewrite urls using  diggystylepagination but without
any success. Any suggestions?
The following code results with this url:
.../products/searchresult.ashx?page=2

However Im trying to get it to produce:
.../products/searchresult/myproductname/2

Please note that "url=$pagedUrl" does not produce anything. This is
just an attempt.
Code in View:

        #set($pagedUrl = $Url.For("%{controller='products',
action='searchresult', params={page=$pageIndex, productName=
$ProductName}"))

        #blockcomponent(DiggStylePagination with "page=$products"
"renderifonlyonepage=false" "url=$pagedUrl"))
        #end

Routing Rule:
                rules.Add(new PatternRoute("/<controller>/
<productName>/searchresult/<page>/")
                   .DefaultForArea().IsEmpty
                   .DefaultForAction().Is("searchresult")
                   .Restrict("page").ValidInteger);

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