Sub xhttpsocket_ResponseSuccess(Response As HttpResponse, TaskId As Int)
ProgressDialogHide
Dim msg As String
msg = "Connecting to server ..."
Try
If Response <> Null Then
Response.GetAsynchronously("json",File.OpenOutput(TempFolder, TaskId, False), True, TaskId)
Else
ToastMessageShow (msg, True)
End If
Catch
msg = "Error Response"
ToastMessageShow (msg, True)
End Try
End Sub