I am having trouble with System.Diagnostics.Process.Start. It's supposed to open combinedURL, which basically is a local html file with some extra URL.
string projectPath = C:\Users\d\Desktop\project\start.html
StringBuilder sb = new StringBuilder(projectPath);
sb.Replace("start.html", "Test_Erkl.html?custid=TST-Pesent&Document=0");
string combinedURL = Convert.ToString("file:" + "///" + sb);
System.Diagnostics.Process.Start(combinedURL);
As a result it opens C:\Users\d\Desktop\project\Test_Erkl.html instead of C:\Users\d\Desktop\project\Test_Erkl.html?custid=TST-Pesent&Document=0. However, if I add firefox.exe to it, it works as intended.
System.Diagnostics.Process.Start("firefox.exe", combinedURL);
Why does it cut everything off, after the ? and how can I make it work without adding firefox.exe (or is there something like defaultbrowser.exe?)