Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we redirect from Console application to a web application in C#?

Tags:

c#

.net

I just need redirect from console to web url, Is that possible in dot net C#? my code is below.

 public static class Program
    {
       public static void Main(String[] args)
        {
         Console.Write("Waiting for a connect to http://www.abcde.com");
         Console.Read();
        }
    }

is that possible in C#? Please suggest.

like image 601
HarryDev Avatar asked Nov 28 '22 06:11

HarryDev


1 Answers

To open a url in the default browser, you can use

System.Diagnostics.Process.Start("http://stackoverflow.com");
like image 134
yadejo Avatar answered Nov 30 '22 20:11

yadejo