?
Solved

J# - Using the Response object

Posted on 2003-10-28
7
Medium Priority
?
256 Views
Last Modified: 2010-08-05
Can somebody tell me how to do a Response.Write in J# ?
0
Comment
Question by:davetek
[X]
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
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

752 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