开发者

Override route values with user preferences values

开发者 https://www.devze.com 2023-04-05 04:22 出处:网络
I have a route which has default values f开发者_开发知识库or a search, e.g. Sort=new and show=all

I have a route which has default values f开发者_开发知识库or a search, e.g. Sort=new and show=all

In my web app, each authenticated user has their own preferences where they can set their own default search criteria.

How do I make the route use the users values instead of the defaults specified in global.asax? E.g. Sort=cost and show=thisweek

I've tried a number of different things so far but to no avail


I managed to get what I wanted using the BaseController and overridden Execute method.

0

精彩评论

暂无评论...
验证码 换一张
取 消