是否可以在asp.net页上包含一个asp(头文件)文件? [英] Is it possible to include an asp (header) file on an asp.net page?

查看:104
本文介绍了是否可以在asp.net页上包含一个asp(头文件)文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个经典的ASP网站,在上面添加了一个asp.net(.aspx)页面.是否可以在aspx页面上包含现有的asp头文件(header.asp)和页脚(footer.asp)?

我不想将页面转换为用户控件,因为这些页面包括其他带有ASP代码的ASP页面.

谢谢

解决方案

没有. ASP.NET不共享会话或与ASP交谈.那是因为ASP太糟糕了,所以它们又重新开始了.但是,这确实是一个丑陋的骇客.我建议您放下并执行转换.


I have a classic asp website, onto which I am adding an asp.net (.aspx) page. Is it possible to include my existing asp header (header.asp) and footer (footer.asp) files on my aspx page?

I don''t want to convert the page to a user control, because those pages include other asp pages with asp code on them.

Thanks

解决方案

Hell no. ASP.NET does not share session or talk to ASP. That''s because ASP was so bad, they started again.


You could create a frameset that points to the header/footer and show those on your ASPX page. However, that is a really ugly hack. I recommend you just buckle down and perform the conversion.


这篇关于是否可以在asp.net页上包含一个asp(头文件)文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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