Multiple Views in the same page MVC ASP.NET

后端 未结 3 1755
青春惊慌失措
青春惊慌失措 2021-01-02 16:01

I want to display different Views on the same page in ASP.NET MVC technology . How can it be acheived.

I have data coming in from 2 different Table

3条回答
  •  Happy的楠姐
    2021-01-02 16:41

    ASP.NET MVC supports the ability to define "partial view" templates that can be used to encapsulate view rendering logic for a sub-portion of a page. "Partials" provide a useful way to define view rendering logic once, and then re-use it in multiple places across an application.

    Refer:

    Re-use UI Using Master Pages and Partials

    Creating Partial View

提交回复
热议问题