1

What does aspnet mvc internally use (for routing)?

Application, Session, Viewstate, Cookies, Cross Page Data, Context.Items, Profiles???????

I mean how can it maintain states w/o using any of the above techniques?

1
  • 1
    which states are you talking about, are you talking of route info?? Commented Jul 11, 2011 at 18:39

1 Answer 1

8

ASP.NET MVC routing uses none of the above. It maintains no state. Internally it uses a static dictionary to store the route definition but that's an implementation detail that you should not depend on for any reason as it might change in future versions.

Sign up to request clarification or add additional context in comments.

1 Comment

This actually helped me a bunch, but my question was very different. I'm trying to learn MVC, but I'm a much more traditional programmer only recently exposed to web stuff. In doing a tutorial, the PageData looked a bit like ViewState or cookies and your answer cleared up how it's different. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.