将桌面重定向到Web应用程序 [英] redirect desktop to web application

查看:86
本文介绍了将桌面重定向到Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在vb.net中有桌面应用程序,我在asp.net中有web应用程序。我想从桌面应用程序重定向到Web应用程序请帮助我?

i have desktop application in vb.net and i have web application in asp.net. i want to redirect from desktop application to web application please help me?

推荐答案

1.由于Web应用程序在Web服务器上运行,因此无法执行此操作并且只有Web应用程序的客户端在Web浏览器中运行,并且您的计算机上正在运行桌面应用程序。此外,桌面应用程序的上下文中没有重定向。



2.您可以做的是直接从桌面应用程序打开您的指定URL的Web浏览器,如下例所示:

1.Is not possible to do this, because the web application is running on the web server and only the web application's clients are running in web browser, and desktop application is running on your computer. Also there is no redirect in the context of desktop application.

2.What you can do, is to open a web browser for your given URL directly from your desktop application, like in the example below:
string url = "http://www.codeproject.com";
System.Diagnostics.Process.Start(url);


这篇关于将桌面重定向到Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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