Link to home
Create AccountLog in
Avatar of Kenny Hopton
Kenny HoptonFlag for United States of America

asked on

MVC template web application (C#)... need a roadmap.

I used to code for a living so I'm thinking I will build a few web sites and get up to speed on the way things are done now. I did some reading on HTML5, CSS and JavaScript. Follow the instructions in the books, build some stupid example sites that amount to 3 to 5 files, you know the tutorials. Ok, time to do something real.
I have Visual Studio 2013 so I figure I'll start there and lean on the Intellisense crutch until I get a feel. I am trying to find my way around Visual Studio 2013 and, specifically, trying to build a basic MVC web app and get up to speed.
File | New | Project | Templates | Visual C# | Web | ASP.NET Web Application  | MVC ...

Poof!  278 files in 120 folders. Seriously.

I get the MVC concept. I get C#.  I get HTML 101 and CSS 101 and JavaScript 101. But there are a lot of arbitrary modularizations and abstractions in this template that seem to come from thin air.  HTML files are CSHTML files I guess. What is a ViewBag and why is there an @ reference in front of it? If I knew what the @ was I might be able to find documentation for this:

@{
    ViewBag.Title = "Contact";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>

I have not met this @ and that is a challenge, but there are surely lots of other things like it.  Where can I get an overview of what all the files are for and what these far-from-self-documenting notations are? BTW, I did figure out the $ in JQuery.
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Kenny Hopton

ASKER

Thanks Kaufmed, that was quick and it answered my specific questions getting me back in motion.

I am still looking for a general roadmap. The secret about files starting with _ being wrappers of a sort, for example. All the secret names like App_Code. I am stumbling over them but I feel like there ought to be a big list so I will be able to tell what all the files in my sample project do. Any idea where I might learn all those arbitrary things?
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Fast response! Thank you!