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

问题描述

我在写一个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中一个完整的网页,如果您有部分,即不包括你的< HTML和GT;标签然后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.


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

09-06 04:08