将网页重定向到Windows窗体

编程入门 行业动态 更新时间:2024-10-22 21:39:08
本文介绍了将网页重定向到Windows窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

盖伊 我想知道是否可以将Web表单从asp重定向到C#Windows表单. 我有一个带有按钮的Web表单(在ASP网页中)以查看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 to C# windows form. I got a web form with a button(in ASP 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窗体应用程序 [ ^ ] 如果您需要该表单来了解用户当前ASP.Net会话中的状态信息,则可以使用querystring将值传递到应用程序中. 如何:在在线ClickOnce应用程序中检索查询字符串信息 [ ^ ] 缺点是,由于它是Microsoft产品,因此只能与IE无缝集成.尽管可以通过以下方式为Chrome和Firefox启用该功能: 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窗体

本文发布于:2023-10-12 16:56:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1485314.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:窗体   重定向   网页   Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!