davetek
asked on
J# - Using the Response object
Can somebody tell me how to do a Response.Write in J# ?
In the Codebehind you can write as Response.Write("Test");
In the aspx page you can write as either <%Response.Write("Test")%>
In the aspx page you can write as either <%Response.Write("Test")%>
ASKER
That doesnt seem to work in J#. The following error is returned when building the solution:
"Name 'Response' is not defined in current context"
"Name 'Response' is not defined in current context"
ASKER
Found solution:
System.Web.HttpResponse objResponse = this.get_Response();
objResponse.Write ("TEST");
System.Web.HttpResponse objResponse = this.get_Response();
objResponse.Write ("TEST");
Including, using System.Web; in the top of your code might work for you to write Response.Write("Test");
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER