Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

J# - Using the Response object

Posted on 2003-10-28
7
239 Views
Last Modified: 2010-08-05
Can somebody tell me how to do a Response.Write in J# ?
0
Comment
Question by:davetek
  • 3
  • 2
7 Comments
 

Author Comment

by:davetek
ID: 9640922
Increased points, need answer urgently
0
 
LVL 4

Expert Comment

by:son_robin
ID: 9640946
In the Codebehind you can write as Response.Write("Test");

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

Author Comment

by:davetek
ID: 9641167
That doesnt seem to work in J#. The following error is returned when building the solution:

"Name 'Response' is not defined in current context"

0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:davetek
ID: 9641190
Found solution:            

System.Web.HttpResponse objResponse = this.get_Response();
objResponse.Write ("TEST");
            
0
 
LVL 4

Expert Comment

by:son_robin
ID: 9678394
Including, using System.Web; in the top of your code might work for you to write Response.Write("Test");
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12416386
PAQed, with points refunded (400)

Computer101
E-E Admin
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question