Home > DeveloperSection > Forums > How to create a view of specific controller
Anupam Mishra

Total Post:135

Points:949
Posted on    January-30-2016 12:53 AM

 ASP.Net C#  .NET  ASP.Net  ASP.NET MVC 
Ratings:


 1 Reply(s)
 330  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.


Anupam Mishra

Total Post:135

Points:949
Posted on    January-30-2016 7:07 AM

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.



Don't want to miss updates? Please click the below button!

Follow MindStick