如何从ASP.NET按钮单击事件中卸载teamviewer? [英] How can I uninstall teamviewer from ASP.NET button click event?

查看:83
本文介绍了如何从ASP.NET按钮单击事件中卸载teamviewer?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的机器上卸载teamviewer,但它应该从带有c#代码的asp.net按钮点击事件调用。我们应该怎么做。有谁可以帮助我并发送示例代码或网址?



我尝试过:



我想在我的机器上卸载teamviewer,但它应该从带有c#代码的asp.net按钮点击事件调用。我们应该怎么做。谁能帮助我并发送示例代码或网址?

解决方案

ASP.NET用于创建Web应用程序。 Web应用程序由两部分组成 - 服务器和客户端。

C#代码属于服务器,其中HTML / JavaScript / CSS(静态,动态和生成)属于客户端...

由于TeamViewer安装在客户端的机器上,你无法访问它(或它背后的操作系统)并从C#启动卸载命令,因为那不是服务器...

幸运的是你,JavaScript(在浏览器中运行)也无法访问操作系统(至少没有用户的认可),所以你可以通过安装和卸载软件来保护那些想要损坏你的计算机的坏人...

I want to uninstall teamviewer on my machine, but it should call from asp.net button click event with c# code behind. How can we do this. Can anyone please help me and send sample code or url?

What I have tried:

I want to uninstall teamviewer on my machine, but it should call from asp.net button click event with c# code behind. How can we do this. Can anyone please help me and send sample code or url?

解决方案

ASP.NET is used to create web applications. Web applications built from two parts - server and client.
C# code belongs to the server, where HTML/JavaScript/CSS (static, dynamic and generated) belongs to the client...
As TeamViewer installed on the client's machine, you can not access it (or the OS behind it) and initiate an uninstall command from C#, as that's no the server...
Fortunately for you, JavaScript (that runs inside the browser) can not access the OS too (not without the user's acceptance at least), so you are protected from the bad guys who want to damage your computer by installing and uninstalling software...


这篇关于如何从ASP.NET按钮单击事件中卸载teamviewer?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆