ASPX页面上的页眉和页脚页面 [英] Header and footer pages on aspx page

查看:125
本文介绍了ASPX页面上的页眉和页脚页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我遇到一种情况,我需要在应用程序的所有页面上都具有页眉和页脚.我不想使用母版页方法,因为我对javascript和usercontrol的aspx页有限制.

我们在dotnet中是否有任何机制,例如包含文件等,使用该机制随着页面的变化而更改url,并且页眉和页脚也会显示在每个页面上.

预先感谢您的帮助.


问候,
Divya

Hi,

I have a situation where I need to have header and footer on all the pages of my application. I dont want to go by master page approach as with this I have restrictions on the aspx pages for javascript and usercontrol.

Do we have any mechanism in dotnet like include file etc. using which url changes as pwer the page and header and footer also shows up on every page.

Thanks in advance for the help.


Regards,
Divya

推荐答案

有很多方法可以解决您的问题,但是所有这些方法都是不可接受的.因此,我不会提出任何建议,因为它只会破坏框架的整个概念.过去几个世纪以来一直使用包含文件对其进行处理.

在这种情况下,您需要非常认真地问自己,为什么限制了母版页和用户控件的存在,以解决像您这样的问题.当我们有各种各样的轮子(撇开圆形,正方形,三角形OK的玩笑)时,为什么要重新发明轮子,您需要重新查看限制条件,看看它是否可以解除并解决您的问题.
There are many ways of solving your problem, but all of them are unacceptable. So, I am not going to suggest one as it simply breaks the whole notion of the framework. To it using an include file so, last centuries.

In this case, you need to ask your self very hard, why the restriction on Master Pages and User Control when they are exactly there to solve the problem like yours. Why do you want to reinvent the wheel when we have all kinds of wheels (round, square, triangular OK joking aside), you need to revisit the restriction and see if it can be lifted and your problem is solved.


这篇关于ASPX页面上的页眉和页脚页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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