Skip to main content
Home Forums Silverlight Programming Programming with JavaScript ICallback Event
3 replies. Latest Post by Mog Liang - MSFT on November 6, 2009.
(0)
chandi
Member
3 points
22 Posts
10-30-2009 7:19 AM |
Hi,
private void OKButton_Click(object sender, RoutedEventArgs e){ HtmlPage.Window.Invoke("CallToServer", controlId,"arg","context");}
public void RaiseCallbackEvent(string eventArgument){ //code}
public string GetCallbackResult(){ string s="hello world";
lblTest="Test";}
Thanx
Maud
Contributor
3358 points
461 Posts
11-03-2009 4:41 AM |
I'm not quite clear about what you attempt to achieve, would you like to explain a little more? If you need interaction between htmlpage and silverlight, this article will be useful
http://msdn.microsoft.com/en-us/library/cc645076(VS.95).aspx
Thanks,
11-03-2009 10:43 PM |
Thanx Maud
Actually I want to update my controls with new values returning from GetCallbackResult() method.
Controls such as Textbox, Label, Grid
Mog Lian...
All-Star
16023 points
1,553 Posts
11-06-2009 4:04 AM |
Try put update control code in Dispatcher.BeginInvoke() method.