2 way redirect not working

2 way redirect not working SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through June 24, 2009 » 2 way redirect not working « Previous || Next »
Author Message
Farhan Anjum
New member
Username: Farhananjum

Post Number: 1
Registered: 05-2009
Posted on Monday, May 25, 2009 - 03:41 pm:   

dear all, i am trying to redirect response of received sms through asp code but it is showing some error. the code is

<%@ Language="VBScript" %>
<% Option Explicit %>
<title>Insert into database</title>

dim connection
dim sSQL, sConnString

sSQL="INSERT INTO testtable (sen, message) VALUES ('" & request.querystring("sender") & "','" & request.querystring("fullsms") & "')"

sConnString="PROVIDER=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & Server.MapPath("testdb.mdb")

'sConnString="Provider=Microsoft.ACE.OLEDB.12.0" & "Data Source=" & Server.MapPath("testdb.accdb")

Set connection = Server.CreateObject("ADODB.Connection")



Set Connection = Nothing



sms debug file shows some error. can anybody help me to resolve this issue

smsdebug.txt (6.6 k)
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 853
Registered: 08-2008
Posted on Wednesday, May 27, 2009 - 03:07 pm:   


Sorry for the delay in response!

It looks like the problem is a missing "/" after the port number in the URL.





(I'm not sure why the "/" is needed in this case, but that does seem to be what is causing the confusion.)

NowSMS Support
Farhan Anjum
New member
Username: Farhananjum

Post Number: 2
Registered: 05-2009
Posted on Wednesday, May 27, 2009 - 05:58 pm:   

Thanks a lot Des.It is working fine now. Below mentioned command also worked for me.Instead of calling main frame page i called directly the messaging sending page from asp scrip.
response.redirect("http://localhost:8811/send text message.htm?phonenumber=xxxxx&text=xxxxxxx.")

Login Login / Register Logout Logout Search Last 30 Days Topics Topics