Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hello
1) How can I Code a standard project in MVC ?
2) shall I use .html files as UI or .aspx ?
3) can I use both html tags and asp controls in .aspx ?
4) can I use JavaScript and Json in MVC ? if Yes, shall I pass JSON values to Controllers or .aspx.cs Files ?
5) Is using a mixed of .js & .aspx & Controllers standard ?
Thanks in Advance

What I have tried:

I have tried to search on the web and reading some articles such as :
MVC in 7 Days or some others, but I am really Confused using technologies such as ASP.NET, MVC, Web API.
Posted
Updated 17-Nov-16 7:41am
v2

1 solution

I'd say you're confused, badly. Start with Getting Started with ASP.NET MVC 5 | The ASP.NET Site[^] .

If that doesn't clear anything up, I suggest picking up a book on MVC and working through it. Everything else you find on the web is going to follow the same stuff as the above link.

1) Not possible to answer this. It's essentially asking "how do I write code".
2) MVC uses template files to generate HTML for the browser using a view engine. That can be either Razor, Spark, NHaml or ASPX currently. You can also provide your own view engine implementation. Razor is HIGHLY recommended. DO NOT mix template page types. For example, do NOT use .CSHTL and .ASPX pages in the same project. Pick one view and engine and stick with it throughout the project.
3) This question is meaningless.
4) Yes. Yes you can pass Json formatted objects to MVC Controller methods.
5) Yes.
 
Share this answer
 

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