Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

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.
 
Share this answer
 
Comments
Monjurul Habib 8-May-12 16:39pm    
5!
Sandeep Mewara 9-May-12 0:53am    
Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900