如何在ASP.NET应用程序中传递ASP页面 [英] How to pass asp page within asp.net application

查看:77
本文介绍了如何在ASP.NET应用程序中传递ASP页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在当前的ASP.NET应用程序中调用经典的ASP页面.

如何通过ASP.NET调用ASP页面?
查看我的代码
------------
如果Rdr("Report")="Y"然后
将mnuItems设置为新的MenuItem()
''mnuItems.NavigateUrl ="Reports.aspx"
mnuItems.NavigateUrl ="Report.asp"
mnuItems.Text =报告"
mnuItems.ToolTip =报告"
NavigationMenu.Items.Add(mnuItems)
如果结束

当我使用上面的代码时,出现如下错误.

``/Projects''应用程序中的服务器错误.
-------------------------------------------------- ------------------------------
无法提供此类型的页面.
说明:由于明确禁止了您请求的页面类型,因此无法提供.扩展名".asp"可能不正确.请查看下面的网址,并确保其拼写正确.
要求的网址:/Projects/Report.asp

Hi,

I want to call classic ASP page in my current ASP.NET application.

How we can call ASP Page through ASP.NET..?

See my code
------------
If Rdr("Report") = "Y" Then
Dim mnuItems As New MenuItem()
''mnuItems.NavigateUrl = "Reports.aspx"
mnuItems.NavigateUrl = "Report.asp"
mnuItems.Text = "Reports"
mnuItems.ToolTip = "Reports"
NavigationMenu.Items.Add(mnuItems)
End If

When i use the above code i am getting error as below.

Server Error in ''/Projects'' Application.
--------------------------------------------------------------------------------
This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension ''.asp'' may be incorrect. Please review the URL below and make sure that it is spelled correctly.
Requested URL: /Projects/Report.asp

推荐答案

http://www.asp.net/mvc/tutorials/passing- data-to-view-master-pages-cs [ ^ ]
http://www.asp.net/mvc/tutorials/passing-data-to-view-master-pages-vb[^]

http://www.asp.net/mvc/tutorials/passing-data-to-view-master-pages-cs[^]


检查该线程

将经典的ASP页面映射到IIS中的.net [ ^ ]
Check this thread

Mapping classic asp pages to .net in IIS[^]


这篇关于如何在ASP.NET应用程序中传递ASP页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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