Or you can call a managed C# (or whatever) language function in a Silverlight control by calling through the JavaScript bridge.
This is one of those tricky questions where the answer is "not directly, but with a little help from Ajax or the web page DOM I can, and this is how I do it...".