Link to home
Start Free TrialLog in
Avatar of sej69
sej69

asked on

C# MVC / HTML5 development question

I've been working with C# for about 3 years now but only on the WPF side of things.  I'm looking at developing a web service and am now looking at MVC / HTML5 / Javascript.  I've loaded up the ASP.NET MVC 4 plugin for VS2010.

When I start a new project off the template I get the app to run ok.  Problem is I'm not seeing a "view designer" anywhere to lay out pages.  So obviously I'm misunderstanding something.

I've done a fair amount of work with Adobe Flex before C# but their version of MVC is layed out a bit different.

I went through google and there's a lot of pages on C# / MVC (3/4) / Javascript and with that a lot of crap.  Can someone tell me the development process for C# / MVC /HTML5 development on design/layout and the relationship to coding?  Or perhaps you have a good resource you can recommend?
Avatar of kaufmed
kaufmed
Flag of United States of America image

There is no "designer" like you would find in WPF or WebForms. You will need to familiarize yourself with Razor syntax, and you will definitely need to understand the relationship between views and controllers (which if you are coming from WPF should not be difficult since I believe WPF is MVP or MVVM--one of those silly acronyms--which is not too far off from MVC, at least closer than WebForms is). You should have a working knowledge of HTML in order to effectively design your views.

Designers give you whatever the creator of the designer felt should be correct, and at times what it thinks you might have meant. With raw HTML, you have complete control over the HTML. You will need this for when you test your application amongst the various browsers. You can edit your views while the application is running, and refresh the page in the browser to see changes in your view (including CSS chagnes). For code-behind, you will have to stop/edit/restart the application--similar to WebForms.

I would suggest starting out with some of the tutorials found on the official ASP.net website:  http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/intro-to-aspnet-mvc-4

Do note that since you are using VS 2010, the tutorial *may* be slightly different when doing some setup for your environment. I have only worked with MVC 4 in VS 2012, so I'm not 100% on that, though.
Avatar of sej69
sej69

ASKER

So I'll need to develop the html page outside of VS?  (I'm loading up VS2012 later this afternoon when I get back to my office).

The demo I loaded up shows a webpage when I browse to it with IE/chrome/etc... and a phone interface when I use a phone emulator.  So in other words, I'll need to have two interfaces developed (or possibly 3 with an additional for tablets)?
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sej69

ASKER

Wow, it seems that we've taken a step back in the ease of developing front ends.  Thanks; that gives me some things to look at.