如何使用C#重定向Consol应用程序中的页面 [英] How to Redirect Page in Consol Application using C#

查看:118
本文介绍了如何使用C#重定向Consol应用程序中的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的开发者

在用于重定向到其他页面的Web应用程序中,我们使用
Responce.redirect("Test.aspx").

如果我想通过consol应用程序使用重定向同一页面,则它不起作用.

任何人都可以告诉我们如何使用C#在consol应用程序中将一页重定向到另一页.

感谢和问候,
Ravi Sharma

Dear Developer

IN Web Aplication for the redirecting to other page , we use
Responce.redirect("Test.aspx").

If i want to use redirect same page through the consol application then its not work.

Any body tell hows to redirect the one page to other page in consol Application using C#.

Thanks And Regards,
Ravi Sharma

推荐答案

使用C#
将consol应用程序中的一页重定向到另一页
没有什么比控制台应用程序中的重定向.此外,我还没有听说控制台应用程序中有任何页面".您是否想问其他问题,或者您自己不确定自己想做什么.

就重定向而言,您可以做的是将控制台输出发送到其他一些应用程序.在这里看看:
将控制台输出重定向到表单应用程序的示例代码 [ ^ ]

如果要在C#应用程序中调用控制台应用程序,请查看此处:
C#RedirectStandardOutput示例 [ ^ ]

我建议您阅读有关控制台应用程序,winforms和webapp的基础知识,以了解共同的差异.
redirect the one page to other page in consol Application using C#
There is nothing like redirect in console app. Further, I have not heard of any ''page'' in console app. Either you want to ask something else or you yourself are not sure of what you are trying to do.

What you can do in terms of redirect is, send the console output to some other app. Have a look here:
Sample code to redirect console output to form application[^]

If you want to invoke console app in your C# app, then look here:
C# RedirectStandardOutput Example[^]

I would suggest you to read about basics of console application, winforms and webapp to get a feel on common differences.


这篇关于如何使用C#重定向Consol应用程序中的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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