Can anyone explain how to send variables from the web (PHP, Javascript, etc.) to a C# program? I want to allow the web to tell the program what to do. Maybe I could use AJAX to send data to an auto-updating page, which the C# program can then read? That would also allow users to be logged-in to the page and therefore different data could be sent to each user. Could someone explain how this could be done?
4条回答 默认 最新
- dongzhang6677 2010-08-06 15:03关注
You could build a webservice in .NET. The best way to do so is with Windows Communication Foundation (WCF).
Then you could write code in your javascript to make calls to the webservice.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报