I have a B4A application that has 2 edittext and a button. I also have an asp.net page on the server that has two textboxes and a submit button. I would like to be able to pass the B4A values to the asp.net webform and automatically click the submit button for the processing to happen on the server.
i have tried the code below but processing still doesn't happen on the server even after i get the "success!" message. Please assist
i have tried the code below but processing still doesn't happen on the server even after i get the "success!" message. Please assist
B4X:
Sub cmdSubmit_Click
Dim jobPost As HttpJob
jobPost.Initialize("JobPostName",Me)
jobPost.PostString("http://xxx.mmm.com/aa.aspx","TextBox1=bb.com&TextBox2=webmn")
End Sub
Sub JobDone (Job As HttpJob)
Log("JobName = " & Job.JobName & ", Success = " & Job.Success)
If Job.Success = True Then
Select Job.JobName
Case "JobPostName"
ToastMessageShow("Success!", True)
End Select
Else
Log("Error: " & Job.ErrorMessage)
ToastMessageShow("Error: " & Job.ErrorMessage, True)
End If
Job.Release
End Sub