ASP.NET 网页架构设计 [英] ASP.NET Web Architecture Design

查看:31
本文介绍了ASP.NET 网页架构设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在编写 Web 应用程序架构时遇到的问题是,我需要可以协同工作的单独组件.举例来说,我只是指 ASP.NET 中的导航栏和实际页面内容(以及静态标题).

The problem I'm having with writing a web application architecture is that I want separate components that work together. By this I simply mean, for example, a navigation bar and the actual page content (as well as a header, which is static) in ASP.NET.

现在,有趣的地方来了:

Now, here's where it gets interesting:

  • 没有两个相同的页面
  • 每个页面上的导航页面都具有基于用户的安全性
  • 导航有指向其他位置的链接

我主要遇到的问题是,您通常必须在 Visual Studio 中拥有一个完整的网页,并且如果您有部分内容,即不包括您的

The problem I'm mainly having is that you've usually got to have a full web page in Visual Studio, and if you have portions i.e. excluding your <html> tags then Visual Studio will end up underlining everything as incorrect.

目前正在处理的这个应用程序的方式是使用框架(是的,框架)将所有内容分开,但一起工作.我想摆脱这一点,尽管网络系统非常大,而且非常重要,因为它必须 24/7 可用.

The way is this application is currently being dealt with is using frames (yes, frames) to keep everything separate, but working together. I want to move away from this, although the web system is very large, and very important in that it must be available 24/7.

有什么想法吗?

推荐答案

您是否看过 ASP.NET 2.0 中的母版页?这些可以与用户控件和 站点地图导航.

Have you looked at Master Pages in ASP.NET 2.0? These can be used in conjunction with User Controls, and the Site Map Navigation.

MSDN 概述

母版页:提示、技巧和陷阱

示例模板集

这篇关于ASP.NET 网页架构设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆