Question

I am a beginner to MVC technology and have few questions.

1) How can I webforms in MVC and why/when should I used it ?

2) If we can build a application using razor view engine then why webform engine is provided ? If it is, we can continue to use traditional web forms.

3) Can I combine razor/aspx view engine in one project.

Coz I can see we can add WebForm/master pages by right clicking in View folder ....

Any help on this appreciated.

Was it helpful?

Solution

Well I'll recommend you reading some ASP.NET MVC book instead. Because it will give you basic understanding of MVC concept. But still:

  1. You can't use webforms in MVC. Because it's completely different approach;

  2. MVC gives you more flexibility over markup, you can customize your application easily. Again read about MVC pattern. Webforms instead are faster to develop, but heavier in terms of size and have some ugly things like viewstate;

  3. Yes, you can. But in different pages, not in the same page.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top