如何在窗体上调用asp文件。

解决方案 »

  1.   

    在窗体上想调用通过服务器解析的asp文件,是通过http调用。
      

  2.   

    是打开asp源文件还是执行asp文件,如果是执行的话可以用ShellExec实现,单元文件在ShellAPI中,asp文件记得带上扩展名。
      

  3.   

    shellexecute(application.MainForm.Handle,'open',pchar('http://127.0.0.1/index.html'),nil,nil,sw_normal);
    通过上述代码在窗体中调用了HTML网页,没有结果.
     shellexecute(application.MainForm.Handle,'open',pchar('index.html'),nil,nil,sw_normal);
    通过上述代码在窗体中调用了HTML网页,结果正常.但该网页下页超链接到ASP文件时,不能解析.ASP文件显示源代码.
      

  4.   

    使用NMHTTP控件~~~~可以得到源代码