The code in my class has no page context or access to the Request object etc. I guess I need to pass this from my code in my page to the class, I cant quite get this right though.
Code in web page:
UserMessage.Text = DTS.Classes.Miscellaneous.SendClientErrorMessage (<SomeObjectGoesHere>, "wibble");
Code in Class:
public static string SendClientErrorMessage (<SomeObjectGoesHere>, string ErrorMessage)
HttpBrowserCapabilities objBrowser = new HttpBrowserCapabilities();
objBrowser = objRequest.Browser;
return "There was an error as follows: " + ErrorMessage;
Any ideas please?