Is this a duplicate question … probably. There are a million +1 discussions on this topic and I can’t get one to work properly. I have a string. I want to turn this string into a URL. I then want to use that URL to navigate to the page in my default browser. Why is this so difficult?
The closest solution I can find is:
string content = "www.linkedin.com/taylormade-golf-company"
string url = Uri.EscapeDataString(content);
System.Diagnostics.Process.Start(url);
This throws the error “System.ComponentModel.Win32Exception: ‘The system cannont find the file specified’ “.
If I use ‘content’ in place of ‘url’ in System.Diagnostics.Process.Start, it takes me to:
“https://www.linkedin.com/taylormade-golf-company?_l=en_US”
How can I simply use a string to navigate to a webpage in code behind?