MVC Routing question

M

Matthias S.

Hi there,

I'm going to develop my first application (blog type of thing) using
MVC. Now I have a question about routing. I'd like to implement a
globalization pattern like this:

http://mydomain/en/about (for the english about page)
and
http://mydomain/de/about (for the german about page)

The language code (in the above case 'en' or 'de') should be persisted
to a cookie. Whenever a page is called which doesn't have the language
portion in the URL, I want to lookup the value in the cookie. If there
is no cookie, I'd like to lookup the language supported by the browser
and rebuild the url. After that, I'd write the cookie.

How would I set up routing for a scenario like this?

Thanks in advance!

Matthias
--
 
M

Matthias S.

Hi Bruce,

thanks for your reply. I've been googeling but recources on how to
provide a custom MvcRouteHandler seem to be pretty little around. Could
you recommend some further reading?

Thanks again,

Matthias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top