Avatar of ITsolutionWizard
Flag for United States of America asked on

mvc view without controller

I have searched on Google about creating view without controller but most of them shown me I can do it using redirect so I try out.

the result is because the app redirect so many time n it ends up it time out or generate error message.

if you have the same situation please show me how to handle this.

the reasons we don't want to use controller is because we will create many landing page from our web designer. and there is no need to generate any model, but we do want to use cshtml to do some server side work.


Avatar of undefined
Last Comment

8/22/2022 - Mon
Kelvin McDaniel

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Just out of curiosity, why would you want to do this? It would seem to be a non-standard way of doing things in MVC, and it could lead to confusion for the maintainer of the code in the future. Your controller doesn't need to do a crazy amount of work. It can simply return the view instances, like what you see in the sample code of a new MVC project.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy