Web应用程序和Web窗体之间的困惑 [英] Confused between Web Application and Web Forms

查看:140
本文介绍了Web应用程序和Web窗体之间的困惑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚购买了 Twilio 帐户和888业务号码,我现在的工作,以建立一个非常简单的调用系统为我的企业。从例子中一切工作正常,但我想创建一个C#Web窗体应用程序,我将作为服务器运行。有基于C#的例子似乎周围的ASP.NET Web应用程序,虽然,我知道基本上一窍不通为中心。

I just purchased a Twilio account and an 888 business number, and am now working to setup a very simple call system for my business. Everything from the examples is working fine, however I wish to create a C# Web Forms Application that I will run as the server. There C# based examples seem to be centered around ASP.NET Web Applications though, which I know basically nothing about.

可以一个C#ASP.NET应用程序是一个自我服务的(单机).exe或有什么办法可以让这个一个C#Windows窗体应用程序的工作呢?

Can a C# ASP.NET application be a self serving (standalone) .exe, or is there any way I can make a C# Windows Form Application work with this instead?

如果需要的话,这是我下面,需要实现教程... http://www.twilio.com/docs/howto/ivrs-the-basics

If needed, this is the tutorial I am following and need to implement... http://www.twilio.com/docs/howto/ivrs-the-basics

推荐答案

在Twilio收到代表您的电话发送一个通知,关于此事件给应用程序。在您的Twilio帐户设置您指定此通知将被发送到。

When Twilio receives a call on your behalf it sends a notification about this event to your application. In your Twilio account settings you specify where this notification is to be sent to.

您指定那里不管地址(URL) - 您的应用程序应该听发送到该地址的命令。你可以在许多方面做到这一点,包括独立的.exe,但要做到这一点是建立一个Web应用程序最简单的方法。

Whatever address (URL) you specify there - your application should be listening to the commands sent to this address. You can do this in a number of ways, including "Standalone .exe", but the easiest way to do it is to set up a web application.

如果你正在建设一个IVR Web应用程序应该在教程中解释与网页组成的TwiML的要求作出回应。

If you are building an IVR your web application should respond to the request with the web page consisting of the TwiML as explained in the tutorial.

BTW我不会用的WebForms在响应Web App的Web窗体isert太多的HTML。去与ASP.NET MVC。这将是比较容易,因为你的情况的响应无关使用HTML

BTW I would not use WebForms for the Web App WebForm isert too much HTML in the responses. Go with ASP.NET MVC. It will be easier because in your case the response has nothing to do with HTML

此外调试这个程序应该是pretty的stright前锋 - 你只需要输入你的应用程序的URL在浏览器中,看看在浏览器中输出

Also debugging this app should be pretty stright forward - you just type your app url in your browser and look at the output in the browser.

这篇关于Web应用程序和Web窗体之间的困惑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆