I'm learning asp.net and silverlight 3 and I have a stupid beginner question.
I want my silverlight application to be take inputs from my asp.net web page, and pass data back to the web page.
I'd love to see some example code that passes data back and forth.
ie, pass strings from a textbox control to silverlight and have silverlight later update a label.
The few examples I've found deal with silverlight 2, the deprecated asp:silverlight control, and DOM manipulation.
From silverlight I can find a label on my web page named 'MyLabel' by this hack:
tb2 = HtmlPage.Document.GetElementById("ctl00_Right_MyLabel");
.. but I cannot set the value, ie this does nothing:
tb2.SetProperty("value","changed by silverlight");
Any pointers appreciated. Thanks in advance!