calling an aspx page from a php site.

Last post 09-26-2007 3:46 AM by er.tushar. 2 replies.

Sort Posts:

  • calling an aspx page from a php site.

    07-19-2005, 2:12 AM
    • Member
      5 point Member
    • nish
    • Member since 07-19-2005, 5:51 AM
    • Posts 1

    hello,

    I  have a php site which  is  operational. I  am working on a windows platform with php 5/IIS -1.1
    I have defined the virtual directory and most of the files it  has are .php files, it has  just  2 .aspx files in it.
    I  am now trying to  call an aspx page from my php page, but I  get the following  error.

    Parser Error Message: Could not load type 'ODL.TravelIntelligence.SpecialOffer'.

    Source Error:

    Line 1:  <%@ Page language="c#" Codebehind="SpecialOffer.aspx.cs" AutoEventWireup="false" Inherits="ODL.TravelIntelligence.SpecialOffer" %>
    Line 2:  <%@ Register TagPrefix="TI" TagName="mis_footer" Src="controls/mis_footer.ascx" %>
    Line 3:  <%@ Register TagPrefix="TI" TagName="mis_header" Src="controls/mis_header.ascx" %>

    Source File: C:\Travel Intelligence - Org\travelintelligence_local\web\mis\SpecialOffer.aspx    Line: 1




    Have u'll come across this before  and  if yes .... what  is my possible solution ..I  am totally  new to the .NET environment , so your help will be greatly appreciated.
    Has anyone done such a thing before ???


    Thanks in advance.
    Nish

  • Re: calling an aspx page from a php site.

    10-10-2005, 5:34 PM
    • Member
      50 point Member
    • Everah
    • Member since 03-11-2004, 12:14 PM
    • Fremont, CA
    • Posts 10
    When you say calling an aspx page, do mean linking to it or including it? Either one should work. Linking should work just fine. I am running .NET 1.1 with PHP 4.3 on Windows 2000 and I am moving in and out of .NET and PHP pages all the time in some of my apps. Including a .NET file is a little trickier. Information can be found in the PHP Manual here and here.

    Take note that the dotnet_load() function is experimental and should be used with caution.

  • Re: calling an aspx page from a php site.

    09-26-2007, 3:46 AM
    • Member
      168 point Member
    • er.tushar
    • Member since 01-21-2006, 11:46 AM
    • India
    • Posts 40

     Hi,
    The reason for the error is that the compiler is unable to find ODL.TravelIntelligence.SpecailOffer class.

    Make sure that you have the class in SpecialOffer.aspx.cs . The class which is inheriting from the Page class should be named as SpecialOffer.

    This will solve your problem.

     

    Regards,

    Tushar 

    Regards,
    Tushar
Page 1 of 1 (3 items)