Click here to Skip to main content
15,896,502 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I have a question regarding calling function of Silverlight.

My Working Conditions:
------------------------
I have created an application in Silverlight successfully. Now I add two objects of the Silverlight in my Default.aspx page. I need to call function of second Silverlight object by first Silverlight object.

First Silverlight Object: this contains button and a text box. I need to enter data in the text box and then click submit.
Second Silverlight object: this object having label in which I pass the result like "Enter value: abc".

Both the objects are different and I need to call function of second object when user click on Submit button of first object.

I try to search about this but unable to find result.

Please help me.

Thanks,
Gaurav Shrivastava
(Sr. Software Engineer)
Posted
Updated 12-Nov-11 5:12am
v2

1 solution

You can use the HTML Bridge[^] to communicate between the page and Silverlight objects.

*Edit* For example, SL object 1 calls JS function which calls SL object 2 method...
 
Share this answer
 
v2
Comments
gaurav003 14-Nov-11 6:25am    
Thanks mark,

its really good and i solve it. I create a best application by your this help.
thanks again

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900