Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

How to process the incoming message using SMS gateway service

$
0
0

Dears ,

I want urgent help from all of u.we purchased one sms gateway service and it is working fine for sending messages.Now my problem is I cannot display the incoming message notifications in my web page. In SMS gateway service I specified Listener URL correctly and  incoming message notification will be "POST" to my CallBack URL.

My ashx code below I pasted.How can I display this incoming message notification in my grid.

Any suggestions will b more helpful for me...How can I see the incoming messages in a grid using this ashx.Here ashx is working correctly.But my probem is dont know how to use this result in a grid

Public Sub ProcessRequest(context As HttpContext) Implements IHttpHandler.ProcessRequest
       dim phoneNumber  as string = context.Request.Params("phoneNumber")
    dim key  as string = context.Request.Params("key")
    dim message  as string = context.Request.Params("message")
    dim  accountName as string = context.Request.Params("accountName")
     Dim Type As String =  context.Request.Params("type")
        Dim kValue As String = "######"
        Dim aValue As String = "###"
        'security: validate accountName & key values
        If kValue = key AndAlso aValue = accountName Then
            If Type = "incoming" Then
                'process the incoming message

                'return Http 200 OK status after message is processed
                context.Response.ContentType = "text/plain"
                context.Response.Write("sssd")
            End If
        End If
        context.Response.StatusCode = 500
        context.Response.ContentType = "text/plain"
        context.Response.Write("pppp")




Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>