Call aspx page from php website

Last post 05-12-2008 9:09 AM by anzer. 7 replies.

Sort Posts:

  • Call aspx page from php website

    05-12-2008, 6:32 AM
    • Loading...
    • mnovice
    • Joined on 04-08-2008, 3:52 PM
    • Posts 15

    Hi,

    I have an application running on internet that is already designed completely in PHP, now i just want a hyperlink on its index page. so when ever user will click on this link its simply open another page that is designed in aspx. I just want to open that asp.net page from php, there is no exchange of data between these two applications (php & asp.net). I am bit new to this stuff. Could anybody please help in resolving this issue?

    cheers!

  • Re: Call aspx page from php website

    05-12-2008, 7:03 AM
    • Loading...
    • anzer
    • Joined on 10-19-2004, 12:00 AM
    • UAE
    • Posts 811

    just give a link in the php page to the asp.net page.. thats all

    <a href="pagename.aspx">Goto Aspx page</a>

    If you want the asp.net page open in a new window.. give the target as _blank

    <a href="pagename.aspx" target="_blank"> Goto Aspx page</a>

    If this post was useful to you, please mark it as answer.

    My Blog | Free books Microsoft
  • Re: Call aspx page from php website

    05-12-2008, 7:13 AM
    • Loading...
    • mnovice
    • Joined on 04-08-2008, 3:52 PM
    • Posts 15

    Thanks anzer, for such a prompt reply,

    i tried your solution but when i click on the link, error comes up as follows:

    The XML page cannot be displayed

    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


    A name was started with an invalid character. Error processing resource 'file:///C:/Documents and Settings/..........

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
    -^

    any suggestion please??????????

    cheers!!!!!

    anzer:

    just give a link in the php page to the asp.net page.. thats all

    <a href="pagename.aspx">Goto Aspx page</a>

    If you want the asp.net page open in a new window.. give the target as _blank

    <a href="pagename.aspx" target="_blank"> Goto Aspx page</a>

  • Re: Call aspx page from php website

    05-12-2008, 7:30 AM
    • Loading...
    • anzer
    • Joined on 10-19-2004, 12:00 AM
    • UAE
    • Posts 811

    It seems like you dont have IIS to run the .Net page or your application is wrongly configured...

    Are you able to run the aspx page directly?  (without from php page)

    What is the url of the page when you run it directly ?

     

    If this post was useful to you, please mark it as answer.

    My Blog | Free books Microsoft
  • Re: Call aspx page from php website

    05-12-2008, 7:40 AM
    • Loading...
    • mnovice
    • Joined on 04-08-2008, 3:52 PM
    • Posts 15

    I have IIS installed on my machine and able to run the aspx application directly with thr URL:

    http://"my machine name"/application name/default.aspx

    ---------------------

    one more thing,, according to your solution, i have added the code in index.htm file,,, right after the body tag as:

    <div>

    <a href="default.aspx">Goto Aspx page</a>

    </div> 

    is that correct?

    anzer:

    It seems like you dont have IIS to run the .Net page or your application is wrongly configured...

    Are you able to run the aspx page directly?  (without from php page)

    What is the url of the page when you run it directly ?

     

  • Re: Call aspx page from php website

    05-12-2008, 7:56 AM
    Answer
    • Loading...
    • anzer
    • Joined on 10-19-2004, 12:00 AM
    • UAE
    • Posts 811

    Your code should work if both of the php and asp.net pages in same web application and  in same folder.

     

    If not try below code 

    <div>

    <a href="http://my_machine_name/application name/default.aspx">Goto Aspx page</a>

    </div> 

     

    If this post was useful to you, please mark it as answer.

    My Blog | Free books Microsoft
  • Re: Call aspx page from php website

    05-12-2008, 8:27 AM
    • Loading...
    • mnovice
    • Joined on 04-08-2008, 3:52 PM
    • Posts 15

    thanks for such quick responses, its working, you simply rocks man,,

    The complete website running perfect on my local machine, now im going to upload the files over the internet, just want to confirm one thing, while uploading, do i need IIS installed on the web server now? as earlier my website on the internet was PHP based using apache web server

     

    cheers,, thanks once again ;)

     

  • Re: Call aspx page from php website

    05-12-2008, 9:09 AM
    • Loading...
    • anzer
    • Joined on 10-19-2004, 12:00 AM
    • UAE
    • Posts 811
    The aspx pages will work only in a server which has IIS and .Net framework installed. So please make sure your hosting support these
    If this post was useful to you, please mark it as answer.

    My Blog | Free books Microsoft
Page 1 of 1 (8 items)
Microsoft Communities
Page view counter