How to create a view of specific controller

Total Post:135

 861  View(s)
Rate this:
Hi ,
As my previous forum,  i am asking about, how to add a controller in a my MVC application and in this forum i want to know, how to  add a view a specific controller. Can anyone give a answer.

Thank you.
  1. Post:135

    Re: How to create a view of specific controller

    We have already created a controller . So now we will created a view explicitly of HomeController .
    suppose we want to add three view of Home Controller Home,Contact and About.
    Now, we will created a three different view files under in Views/Home folder (we have add one more folder for seapration of homeController views and HomeController related views resided in Home folder ) Such as look like this:

    and you have three views so you can write your code as you wish.
    For more details you click Here.