I have Javascript (Client Object Model) running in a Content Editor web part that controls other web parts on the page. The JS COM is limited in what it can do, so I want to be able to call managed code (c#) at times to fill in the gaps. But I can't figure out how to pass control from js to c# (and back).
This is SharePoint 2010 sandboxed shared/hosted environment (not O365 SharePoint Online). So I believe the managed code must be in a WSP web part on the same page. The site has anonymous access.
Can (how can) the JS call the c# code?