views:

39

answers:

2

Hey, I have an ASP.NET usercontrol inside which I am enbedding the Silverlight usercontrol. I have two events in the asp.net usercontrol - EDit and View . In the view mode I want all the controls on the Silverlight side to be disabled . So, How can I disable the controls from my asp.net code. Thanks

A: 

You can use javascript check out this blog Silverlight communication

alejandrobog
A: 

LINQ-based code:

parentControl.Controls.Foreach(c => c.Enabled = false);
VMAtm