I have a cs file delivered from a vendor with a structure like the following:
public partial class Test : System.Web.UI.Page
{
public void InsertSignature()
{
Response.Write("ASDFASDFAF#WRRASDFCAERASDCDSAF");
}
}
I am attempting to use the InsertSignature function in a MVC 3 application using the following code
MySample sample = new Test();
sample.InsertSignature();
I'm getting the following HttpException: "Response is not available in this context." Is there anyway that this can work with out modifying the vendor delivered product. I know there are ways to make this work by modifying the file but if at all possible it would be great to avoid doing this.
Thanks in advance.