M
Michael Evans
Trying to call i webmethod asyncronizly and set the result to a datagrid.
It's not working any ideas
thanks
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim ws As New ReportingWS.APQReportingServices()
Dim cb As AsyncCallback = New AsyncCallback(AddressOf webcall)
Dim ar As IAsyncResult = ws.BeginGetAPQReports(cb, ws)
Dim intI As Integer
For intI = 1 To 1000
Me.TextBox1.AppendText(CStr(intI) & vbCrLf)
Next
End Sub
Private Sub webcall(ByVal ar As IAsyncResult)
'Get the returned web service instance
Dim ws As New ReportingWS.APQReportingServices()
Dim ds As New DataSet()
Me.DataGrid1.DataSource = CType(Me.Invoke(ar), DataSet)
End Sub
It's not working any ideas
thanks
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim ws As New ReportingWS.APQReportingServices()
Dim cb As AsyncCallback = New AsyncCallback(AddressOf webcall)
Dim ar As IAsyncResult = ws.BeginGetAPQReports(cb, ws)
Dim intI As Integer
For intI = 1 To 1000
Me.TextBox1.AppendText(CStr(intI) & vbCrLf)
Next
End Sub
Private Sub webcall(ByVal ar As IAsyncResult)
'Get the returned web service instance
Dim ws As New ReportingWS.APQReportingServices()
Dim ds As New DataSet()
Me.DataGrid1.DataSource = CType(Me.Invoke(ar), DataSet)
End Sub