how to get variable in desktop c# program from web javascript application

前端 未结 2 1661
遥遥无期
遥遥无期 2021-01-28 18:01

I met a problem that there are two applications. one is desktop application in c#, and another is web application in javascript. some variables or informations in running deskto

相关标签:
2条回答
  • 2021-01-28 18:29

    When you open the web application, pass the variables in as query string parameters and you can get them using javascript various ways, some of which are noted here

    0 讨论(0)
  • 2021-01-28 18:32

    I think the processes are very well separated and unless you use a sole handler for c# + js (c#.net to render your page for instance) it is going to be impossible to retrieve data.

    Maybe you can get something from the webbrowser object: running it on your page you might gain access to some of your web variables...

    Also, if the c# app writes data in a file, the js could read it...

    Have fun Rgds

    0 讨论(0)
提交回复
热议问题