从头开始创建一个网站,首先要编写代码、母版页、标题、菜单还是什么?
我要使用ASP.net创建一个网站,我自己设计。这是一个正常的网站 这是我的第一次,我不知道从哪里开始。 我的意思是步骤是什么,比如第一个菜单,然后是主页或页眉、页脚...... 欣赏按顺序回答。
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 steps, like first menu then master page or header, footer.....
Appreciate in order way answer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 HTML 创建原型。没有母版页,没有路由,没有视图,控制器,继承。都不是。
制作最复杂页面和最简单页面的原型。然后您将了解如何组织布局。我不会谈论应用程序的架构,因为这个主题太广泛了。我假设所有这些都已经就位,并且您正在询问如何构建表示层。
创建一个只有包装器的基本母版页。从该母版页继承,以便您拥有页眉、主要内容和页脚。然后根据需要引入进一步的继承来适应您的需要。
关于视图和控制器之类的东西。
我将通过以下方式创建它们:
这是非常基本的,绝不是一个永远有效的模板,但希望它能给您一些思考的东西。
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:
This is very basic and by no means a template that will always work, but hopefully it'll give you something to think about.