user890704
user890704

Reputation:

Webpage communicating with /triggering event on C# program?

I'm planning on creating a C# program (an IRC bot, to be specific). I need it to be able to receive requests from and/or be controlled by a web page. I plan on getting a VPS, that I will host my website and this bot on.

For example, suppose I have a button on an ajax page. If a user clicks that button, could it trigger a c# event using php, and perhaps carry some arguments (like text in a form on that same page)?

I am new to this field of programming and may not use some correct terminology, and feel free to correct me.

Upvotes: 1

Views: 136

Answers (2)

Michael Hays
Michael Hays

Reputation: 6908

Boom baby! IRC bot code is he'ya:
IRC Bot code

And while there are a hundred ways to sunday to make a program that responds to http requests, go do a tutorial on Asp.Net. Whether it's taking a command through a web page or showing an interface, this will be a nice step into an easy new technology for you:

http://www.asp.net/mvc

In particular, go through the free PluralSight training on that web page. You will not regret it.

Upvotes: 1

Tejs
Tejs

Reputation: 41236

Sounds like you want to be using TcpClient. System.Net.Sockets.TcpClient

Upvotes: 1

Related Questions