tags:

views:

30

answers:

2

I have a rule defined as

routes.MapRoute(
                "DefaultVideo",                                              // Route name
                "{action}/{id}/{title}",                           // URL with parameters
                new { controller = "Home", title = "" },
                new { id = new IDConstraint() });

However, this is catching partialview codes too, that is strictly supposed to be used as partial views. How do I distinguish that in my code that not to catch code meant for partialview as routing thing?

A: 

In asp.net mvc partial view behaved exactly like views in this that your action can return they both as well.

Mendy
A: 

Routing has nothing to do with views and partial views. Controller is the boss who decides what will be returned.

And try to clarify your question.

Arnis L.