Padarn 母版页(或如何包含 .aspx 页面)
Padarn 是否支持 .NET 母版页的概念和/或经典 ASP #include 的概念?
我想在其他 .aspx 页面中重用我的 .aspx 页面,并实现单个页眉和页眉。网站的页脚。
看来 Padarn 不明确支持 .aspx 页面重用,也许我需要在 Padarn 页面中动态生成/调用 Document 对象来模拟母版页效果。
在尝试在 Padarn 框架内巧妙地模拟 .aspx 重用之前,我想知道是否有对此的内置支持和/或是否有最佳实践。
Does Padarn support the concept of .NET Master Pages and/or the concept of Classic ASP #include?
I would like to reuse my .aspx pages in other .aspx pages as well as implement a single Header & Footer for the web site.
It appears as though Padarn doesn't support .aspx page reuse explicitly and that, maybe, I will need to dynamically generate/call Document objects within a Padarn Page to simulate the Master Page effect.
Before I try to get clever with simulating .aspx reuse within the Padarn framework, I would like to know if there is built-in support for this and/or if there is a best practice for this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Padarn 没有对母版页或经典 ASP 语法的内置支持。对于页面元素的重用(页眉、页脚、菜单等),我们通常在代码后面使用基类,其中我们有可以呈现这些元素的方法。然后,我们从基础派生页面以获得通用功能。
Padarn doesn't have built-in support for master pages or classic ASP syntax. For page element re-use (headers, footers, menus, etc) we typically use a base class in the code behind where we have methods that can render these elements. We then derive pages from the base to get the common functionality.