VB.net
'This is a ASP.Net using VB.Net as CodeBehind
Imports Class1 'Include this class file to send sms.
Click the Downloads link beside
to downloads this file.
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object,
ByVal e As System.EventArgs) Handles
Me.Load
Dim obj As New Class1
'If your message includes special characters, then
please use URLEncode method before
passing the value of the message parameter.
'For Ex. HttpUtility.UrlEncode(message)
Dim strPostResponse As String = obj.SendSMS
("UserName", "Password", "919XXXXXXXXX",
"Message")
Response.Write("Server Response " &
strPostResponse)
End Sub
End Class
|