I am to create a website with ASP.net, I have the design with myself. It is a normal website It is my first time and I do not know to start from where. I mean what are the step开发者_Python百科s, like first menu then master page or header, footer..... Appreciate in order way answer.
Create a prototype in HTML. No master pages, no routing, no views, controllers, inheritance. None of that.
Make a prototype of the most complex page and of the simplest page. You'll then see how to organise your layout. I'm not going to speak about architecture of the application as the topic is too broad. I assume that all this is already in place and you are asking how to build your presentation layer.
Create a basic master page that would just have a wrapper. Inherit from that master page so that you have header, main content and footer. Then adapt this to your need by introducing further inheritance if needed.
In regards to views and controllers and stuff.
I'd create those in the following way:
- View model
- View
- Controller
- Routing
This is very basic and by no means a template that will always work, but hopefully it'll give you something to think about.
精彩评论