Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a View without a model MVC 5

Tags:

asp.net-mvc

I need to create a simple view with 3 links on it ( Administration type page ), I tried adding a View called index to a Directory called Administration but when I try to navigate to it it throws a resource not found error. I am brand new to MVC coming from Web Forms so sorry if this is a stupid question ;)

like image 897
user2719830 Avatar asked Oct 16 '25 08:10

user2719830


1 Answers

Firts Add a controller which will come with Index method. Right click on Index Method and select Add View. Add all Html you want to add in that view and your page is ready without adding a Model.

like image 66
Asim Shaikh Avatar answered Oct 19 '25 00:10

Asim Shaikh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!