0

Is it possible to call a C# method and asp.net page through php?

3 Answers 3

7

Within a PHP generated page you can definitely link to a ASP.NET page.

If you want to call a C# method within a PHP script, I would suggest you using a RESTful API or SOAP to invoke C#'s method remotely. Your ASP.NET application server will host the WebService, and your PHP script will be the client.

Sign up to request clarification or add additional context in comments.

Comments

3

I'm not exactly sure what your scenario is, but you may check out Phalanger.

Phalanger is an open-source compiler of PHP to .NET which also adds some extensions to PHP that make it possible to call .NET methods (and similarly, you can call compiled PHP from C#).

Comments

1

I'm not sure exactly what you mean, however it is possible to call page methods which have to be called via POST with content-type = "application/json; charset=utf-8". There are jQuery tactics to do this from a web page.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.