Last post May 14, 2014 10:21 AM by ZeniZen
May 11, 2014 01:24 AM|ZeniZen|LINK
I am trying to write a simplest silverlight client code for method which can be called from server without parameters. Bellow is my code in VB:
hubProxy.On(Of String)("received", Function() Context.Post(Sub() textBox.Text += "Notified!", Nothing))
But I am getting error “Expression does not produce a value”.
Any help please.
May 14, 2014 10:21 AM|ZeniZen|LINK
I used bellow code changing function to Sub().
hubProxy.[On](Of String)("received", Sub(data As String) Context.Post(Sub() textBox.Text += data, Nothing))
It works now!