Ask a questionAsk a question
 

QuestionHow to extend JS library with C# code?

  • Tuesday, November 03, 2009 7:55 AMJovi Shen Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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 byeryangMSFTWednesday, November 04, 2009 2:29 AM (From:.NET Base Class Library)
    •  

All Replies

  • Wednesday, November 04, 2009 2:29 AMeryangMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,
    Thanks for you post, but it's likely to get quicker and better responses to ASP.NET issues at http://forums.asp.net where ASP.NET experts live in, good luck:)

    Thanks,
    Eric

    Please remember to mark helpful replies as answers and unmark them if they provide no help.