0

I have a website that started with ASP.NET and over time has had some Silverlight elements added to it throughout miscellaneous pages. One of these elements needs to change a static object on the ASP.NET Master Page containing it. Is this in any way possible? I had it in my mind that I might be able to create an event in Silverlight and catch it in the ASP.NET code, but I doubt that could work. Any help would be great.

1
  • It is rarely a good idea to use a static object in ASP.Net Commented Jun 2, 2011 at 0:05

1 Answer 1

2

This is fundamentally impossible. Silverlight runs on the client, whereas ASP.Net runs on the server, and never the twain shall meet.

Instead, you can use AJAX (see the WebClient class)

Sign up to request clarification or add additional context in comments.

2 Comments

Yep, go from Silverlight control -> Javascript bridge -> AJAX call to server.
@slugster: You can send HTTP requests directly from Silverlight; you don't need Javascript.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.