Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Put ASP.NET on wordpress site

I work for a college and our main website has an ASP.NET based course information search which I created. This has become popular and our company facing website (training for companies) has asked for the same system on their website. I'm not involved in the day to day of either website but know theirs was made using Wordpress. Is it going to be possible for me to embed some ASP.NET code within some of the pages? Any articles on doing this?

EDIT: The ASP.NET code that would appear in the actual Markup is minimal it's mainly a few asp:Literals I did this on purpose to hide most of it from the website developer to save myself hassle when something gets deleted by accident.

EDIT2 There was a response to do it as a webservice would this be possible. i.e. as search box on the main page displaying the results underneath.

like image 828
PeteT Avatar asked Nov 27 '09 10:11

PeteT


People also ask

Can you use ASP.NET with WordPress?

Yes, you read it right. It's now possible to run an entire WordPress Application over an ASP.NET Core Host seamlessly.

Can you use C# with WordPress?

The C# method is coded in a C# project that is referenced during the compilation of WordPress. Thanks to the interoperability options, we can call the PHP WordPress API from C#, register WordPress callbacks as C# delegates etc.

Is ASP.NET good for websites?

When it comes to . NET Core, it's the best framework for web development. With the development of ASP.NET Core, Microsoft has addressed a lot of questions with one shot. It allows developers to develop web apps, web services, mobile backend, and many other things under a single framework.


3 Answers

Since asking this question a long time ago and creating a less than ideal iframe solution I have now found a great wordpress plugin called iframe-less

http://wordpress.org/extend/plugins/iframe-less-plugin/

Basically you give it an URL and it builds the content of that page directly into your wordpress page. So far it seems to work really well.

like image 148
PeteT Avatar answered Oct 05 '22 07:10

PeteT


I have similar needs that the originator of this thread has. I maintain a CRM and corporate site that runs on ASP.NET/SQL along with a separate Wordpress php company blog. After we've been using Wordpress for a year, people here would love to be able to edit static content on our corporate site like we do in Wordpress, so I am looking at possible ASP.NET/Wordpress hybrid set ups.

I am hearing good things about "Phalanger": http://www.php-compiler.net It is a PHP Language Compiler for the .NET Framework, and you can run PHP code in .NET

It was also great to find out in this thread that you can have PHP and ASP.NET in the same IIS web, its another reasonable sounding solution. If I had any nay reputation (I am new here) I'd give RickNZ a vote.

like image 24
GNat Avatar answered Oct 05 '22 05:10

GNat


What you could do is create a web service on your ASP.NET application and then write a Wordpress plugin, that would read that service and display it in wordpress page.

like image 36
Vladimir Kocjancic Avatar answered Oct 05 '22 06:10

Vladimir Kocjancic