HOW TO CREATE A VIEW OF SPECIFIC CONTROLLER

Anupam Mishra

Total Post:135

Points:949
Posted by  Anupam Mishra
 576  View(s)
Ratings:
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. Anupam Mishra

    Post:135

    Points:949
    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.


Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!