是否有使用框架,以多个ASPX文件合并到一个单一页面的方法吗? [英] Is there an alternative to using Frames to combine multiple aspx files into a single page?

查看:399
本文介绍了是否有使用框架,以多个ASPX文件合并到一个单一页面的方法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我重写包含约10分开的框架,每个显示一堆独立的ASPX文件的网站。

I am rewriting a site that contains around 10 separate frames which each display a bunch of separate aspx files.

有等同于使用组合多个ASPX文件架,而无需重写所有个人ASPX文件构成框架的内容的现代?

Is there a modern-day equivalent to using Frames for combining multiple aspx files, without needing to rewrite all the individual aspx files that make up the frame's contents?

推荐答案

如何打开现有的aspx页面进入(用户)的控制?这将让您无论是动态地添加他们(任何/所有,一个或任何数字)单页或者只是静态地(所有十个)的标记这么做。

How about turning the existing aspx pages into (user) controls? This would allow you to either dynamically add them (any/all, one or any number) to a single page or just statically (all ten) do so in markup.

您保留任何理由你不得不为而真正想显示他们一起以某种形式/数量还保持分离(其它/旧平台创建10个不同的页面,这将是类似于包含文件)

You retain whatever rationale you had for creating 10 different pages while really wanting to display them together in some form/number yet maintain separation (in other/older platforms, this would be similar to include files)

转换ASPX到ASCX 没有太多的工作。

根据您下一步需要什么,你可能需要做更多的工作,有可能使用客户端技术(AJAX),如果你想每个控制功能,不必刷新整个页面(如在一个框架)。

Depending on what you need next, you may need to do more work, likely using client side techniques (AJAX) if you want each of the controls functions not have to refresh the entire page (like in a frameset).

这篇关于是否有使用框架,以多个ASPX文件合并到一个单一页面的方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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