Asynchronous comsuming


filip stas

Doesn't asynchronous consuming of a webservice work with ?

i have following code
Private Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton1.Click

Dim cb As New AsyncCallback(AddressOf CBSmsSendfunction)

Dim header As New localhost.SMSheader

With header

..send_kopie = copy_send.Text

..show_status = display_status.Checked

..use_flash = use_flash.Checked

End With

sms.SMSheaderValue = header

sms.BeginSend(Textbox2.Text, TextBox1.Text, Textbox3.Text, u.GebruikerID, cb, 0)

Label1.Text = "Bezig met verzenden ..."

End Sub

Sub CBSmsSendfunction(ByVal res As IAsyncResult)

Label1.Text = sms.EndSend(res)

End Sub


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question