My question is.. how am I able to send 2 data parameters to the browser within my C# application? I have a command line application which is a server for my game and on a certain message from the client I have to activate JavaScript on the webpage the client is playing on. What do I use to achieve this?
Share
Wow is this a wide-open question. If the request from the browser is for a full HTML page, then embed the call to the JavaScript function within an inline
scripttag on the page. If the request from the browser will be via ajax, it’s totally up to you how you send that data, but JSON is a common mechanism.