Link to home
Start Free TrialLog in
Avatar of davetek
davetek

asked on

J# - Using the Response object

Can somebody tell me how to do a Response.Write in J# ?
Avatar of davetek
davetek

ASKER

Increased points, need answer urgently
In the Codebehind you can write as Response.Write("Test");

In the aspx page you can write as either <%Response.Write("Test")%>
Avatar of davetek

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"

Avatar of davetek

ASKER

Found solution:            

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
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial