views:

20

answers:

1

Hi,

I am new to silverlight and I am wondering if it is possible to access silverlight object data from the aspx page that host it. Or have silverlight write to a hidden field on the page on client side.

What I am trying to do is to use silverlight to upload file via WCF (client to WCF Service directly instead of posting data back to the web server then forwarded to WCF service). When uploading a large file, user can still do some data entry etc. And once the upload is done have it write some data return by the WCF service to the aspx's hidden field and postback to the server on submit.

any suggestion would be appreciated thanks

+1  A: 

Silverlight support javascript interop. See here for more details.

AlexEzh
right, thanks!!
Eatdoku
just a quick example on how to call host javascript function in SLHtmlPage.Window.Invoke("CallMe", "data here!!");
Eatdoku