Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以将值从 asp.net 网站传递到 asp.net 中的 Web 表单?
您可以通过 System.Diagnostics.Process 启动该进程,将 webform 中的值作为命令参数传入,例如Process.Start(@"c:\temp\myapp.exe -name=joe -color=green"),但这显然只会在服务器上启动“myapp.exe”。我不熟悉您的业务流程,但您肯定最好将值保存到 Web 应用程序中的数据库中,然后在 Windows 窗体应用程序中从数据库中加载?
Process.Start(@"c:\temp\myapp.exe -name=joe -color=green")