How to RUn ASP Page in ASP.NET

Last post 05-27-2009 3:00 AM by bargemahesh. 2 replies.

Sort Posts:

  • How to RUn ASP Page in ASP.NET

    01-10-2007, 9:22 AM
    • Member
      4 point Member
    • arisaravanan
    • Member since 01-08-2007, 6:27 AM
    • Posts 27

    Hi,

    I wrote one ASP file,which has One line Code,Response.write("ASP Page") ;.

    By clicking HTML Button from ASPX page,I want to redirect that ASP Page.

    While clicking I found the following error msg.

    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: /calendar_control/qwe.asp

    Please Help me out this problem else any one know how to execute ASP Page from ASP.NET Project.

     

     

     

  • Re: How to RUn ASP Page in ASP.NET

    01-10-2007, 4:17 PM
    Answer
    • Star
      12,312 point Star
    • Mr^B
    • Member since 02-12-2006, 11:38 AM
    • Posts 2,181

    Hi, Try this thread here:

    http://forums.asp.net/thread/1409347.aspx 

    MCSD.Net
  • Re: How to RUn ASP Page in ASP.NET

    05-27-2009, 3:00 AM
    • Member
      42 point Member
    • bargemahesh
    • Member since 05-19-2009, 7:25 AM
    • Pune
    • Posts 7

     Hi Arisaravanan

     You can run classical ASP files in to ASP.NET Solution. Use following way

    'AspCompat'  page property  is an aid in migrating ASP pages to ASPX pages. It defaults to false but should be set to true in any ASPX file that creates apartment-threaded COM objects--that is, COM objects registered ThreadingModel=Apartment. That includes all COM objects written with Visual Basic 6.0. AspCompat should also be set to true (regardless of threading model) if the page creates COM objects that access intrinsic ASP objects such as Request and Response. The following directive sets AspCompat to true in ASP file:

    <%@ Page AspCompat="true" %>

    Include above code starting of the ASP page.

    Thanks & Regards
    Mahesh Barge
Page 1 of 1 (3 items)