Solved

J# - Using the Response object

Posted on 2003-10-28
7
232 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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn how to dynamically set the form action using jQuery.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now