将网页重定向到Windows窗体 [英] redirecting web page to windows form

查看:81
本文介绍了将网页重定向到Windows窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

盖伊

我想知道是否可以将Web表单从asp.net重定向到C#Windows表单.
我有一个带有按钮的Web表单(在ASP.net网页中)以查看OrderDetails,并且该按钮需要使用Web表单中该Order的OrderDeatils调用Windows表单.所以有可能因为ASP.Net使用会话,查询字符串等并使用response.redirect而Windows应用程序使用了不同的东西.

我想知道这可能吗?

Hi Guy

I want to know is it possible to redirect a web form from asp.net to C# windows form.
I got a web form with a button(in ASP.net web page) to view OrderDetails and that button need to call a windows form with OrderDeatils of that Order that is in web form. so is it possible becouse ASP.Net uses sessions,querystring etc and uses respond.redirect whereas windows application uses something different.

I want to know is it possible and how?

推荐答案



我已经制作了启动Windows窗体的网站.您无法启动已经安装在本地计算机上的进程,但是可以使用.Net ClickOnce部署机制启动它.

ClickOnce应用程序与任何.Net Windows应用程序一样,只不过它们可以部署到Web服务器上,并且顾名思义,只需单击一下即可安装和启动.

您需要通过一些示例进行研究.第一个向您展示如何为您的应用程序创建ClickOnce部署.

使用ClickOnce部署Windows窗体应用程序 [如何:在在线ClickOnce应用程序中检索查询字符串信息 [ Google Chrome浏览器的ClickOnce [用于Firefox的Microsoft .Net Framework Assistant [
Hi,

I have produced websites which launch windows forms. You can''t launch a process already installed on a local machine but you can launch it using the .Net ClickOnce deployment mechanism.

ClickOnce application are just like any .Net windows application except they can be deployed onto a webserver and as the name suggests installed and launched with a single click.

You need to work through a few examples. The first shows you how to create a ClickOnce deployment for your application.

Deploying Windows Forms Applications with ClickOnce[^]

If you need the form to be aware of state information from the users current ASP.Net session it is possible to use the querystring to pass values into the application.

How to: Retrieve Query String Information in an Online ClickOnce Application[^]

The downside is, with this being a Microsoft product it only works seamlessly with IE. Although it can be enabled for Chrome and Firefox via the following:

ClickOnce for Google Chrome[^]
Microsoft .Net Framework Assistant for Firefox[^]


这篇关于将网页重定向到Windows窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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