Click here to Skip to main content
15,912,837 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new in MVC, I opened new project select wed=>webapplication=>mvc5
then new window open which is select template then I select MVC
new project opened but
1) it doesn't ask for aspx engin or razor engine it is directly go for razor engine?(because it ask in 2012 for aspx or razor)

2)when we add webforms it also add code behind .cs file , hence it is break the rule of separation by allowing tightly couple between frontend and code behind?

3)OR we able to add webforms with .cs then is it possible directly add existing webform project webforms to mvc application? and make webform application as mvc(may be silly)?


thanks in advance.
Posted
Updated 10-Sep-15 21:22pm
v2

1 solution

If you are using mvc then you don't use webforms as well, you either create an mvc project and use controllers\models\views, or a webforms one with aspx\code-behind files.
 
Share this answer
 
Comments
Member 11922776 11-Sep-15 4:30am    
after right click on view folder and add new item then it gives webforms option to add and after adding it it come with .cs file.
F-ES Sitecore 11-Sep-15 4:36am    
It gives you lots of options, including xml files and unit tests...it doesn't mean they are valid options though :) it's up to you to know what is valid where, and if you are in your views folder then create views (or config files).
Member 11922776 11-Sep-15 5:24am    
f9 :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900