The Twilio documentation provides a guide for asp.net MVC, but not for webforms. I am able to send an SMS message with no problem, but receiving SMS replies is where I am stuck. I have found that it is recommended for webforms users, to use a generic handler, but that is all I have so far, and I do not know how to get the information from the handler. And also, I have to give a URL to the Twilio console and I do not know what URL to give. I can put it on any of my website pages, example "mywebsite.com/??" "??" is I don't know where and how to reference my handler.
I have created the handler "message.ashx" here:
Public Class message : Implements IHttpHandler
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
Context.Response.ContentType = "application/xml"
Dim Body = Context.Request.Forms("Body")
Dim response As New Twilio.TwiML.MessagingResponse()
response.Message("You said: " & Body)
Context.Response.Write(response.ToString())
End Sub
Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable
Get
Return False
End Get
End Property
End Class
So the question is, now that I have this handler in place, how do I get the information on an aspx page to view? And what url do I give to Twilio console for the reply. I am using C# but the answer can be in C# or VB.NET, as I can get translated.