Ask a questionAsk a question
 

QuestionHow to extend JS library with C# code?

  • Wednesday, November 04, 2009 3:04 AMJovi Shen Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hope my question is in the correct group.

    Well, we can call the built-in object in JS code like window.***(), and I know Microsoft has the realated tech which helps to make C# code invoke JS code, so if I define a method via C# like public void Run(), can I call it in JS like window.Run() and how to do that if it can?

    Also, can I extend the stardand JS library, like I define a property A in C# code , and in JS I write the code like window.A.Run()?


    Thanks in advance!

    • Moved byHarry ZhuMSFTTuesday, November 10, 2009 4:52 AM (From:JScript for the .NET Framework)
    •  

All Replies