I need to implement a DLL that will take the parameter passed (SessionNumber) and add it to a web address, and then launch the default browser using that address.
I'm having problems getting it to work correctly.
Currently, I have:
namespace WebsiteLaunch
{
public class LaunchSite
{
public LaunchSite(ref string SessionNumber)
{
string SessionPassed = SessionNumber;
string target = "https://www.website.com/sessionHandler.do?" + SessionPassed;
try
{
System.Diagnostics.Process.Start(target);
SessionNumber = "SUCCESS";
}
catch
{
SessionNumber = "ERROR";
}
}
}
}
The source compiles fine, but doesn't work successfully when called from another program.