Click here to Skip to main content
15,904,155 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900