开发者

Multiple view in same page asp.net MVC2

开发者 https://www.devze.com 2023-02-05 10:04 出处:网络
I want to render two seper开发者_JAVA技巧ate views in same page. I mean, for example I am showing details of a shop, I need to get the Category List (View1- Action resultsreturns all catogories in tha

I want to render two seper开发者_JAVA技巧ate views in same page. I mean, for example I am showing details of a shop, I need to get the Category List (View1- Action results returns all catogories in that shop) and BrandList (View2 - Action results returns exclusive brands in that shop). How can I achieve this? or how can I write my controller class to get this? Thanks in advance. ..Throjen


What you are looking for are Partial Views

http://www.highoncoding.com/Articles/638_Understanding_Partial_Views_in_ASP_NET_MVC_Application.aspx

0

精彩评论

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