开发者

asp.net mvc - routetable catching partialview

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 开发者_C百科I distinguish that in my code that not to catch code meant for partialview as routing thing?


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


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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜