Home > Net >  C # winform, hyperlink on the web, using a Google browser to open it?
C # winform, hyperlink on the web, using a Google browser to open it?

Time:12-04

Everyone a great god, teachers ask a question:
I use c # write a system, on the server, and then put hyperlinks on the company homepage, use for a long time, find some problems:
1, use the Google browser is no reaction, nowhere
2, with Microsoft's Internet explorer browser, can open most of the time, but sometimes also can appear unable to visit, after waiting for a period of time is automatically well,
Winform or DEBUG, not the final release version (because sometimes still need to DEBUG update),
Want excuse me, what reason is this? Why will the browser so picky? With the code?

CodePudding user response:

You need to understand the nature of web applications and desktop application differences, to understand the problem, the desktop application is never executed in the browser, can only download first locally and then perform locally, as some browsers can be executed directly, but is hides the download process, this process with your WinForm procedure code, compile way (no Debug, Release), but for the sake of safety, generally prohibits browser directly to execute programs on the web, of course can be set to allow execution (such virus Trojan can automatically run on your machine, unsafe),

Microsoft has launched ocx technology to solve this kind of problem, but because of security problems are now rarely used,

CodePudding user response:

Learn about the B/S technology,
You doing with these don't have the time, can out of a can use the site,

CodePudding user response:

Now consider using WebAssembly refactoring, Google, Firefox support,

CodePudding user response:

Can play like this

CodePudding user response:

Write the winform links on the page
I feel a little meng ~ don't understand what you say

CodePudding user response:

Well, I say not clear enough, not to say winform run in the browser, but by the browser open winform, equivalent to a shortcut,
For example winform in the server address is://10.101.2.56/medical/ERT. Exe,
I put the address on the web page, users click on the link, the ERT. Exe will play out, not to say that run in the browser,

CodePudding user response:

Are you sure you this is not a regular download links?
  •  Tags:  
  • C#
  • Related