473,472 Members | 2,153 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Response.Write to specific page location

How can I direct Response.Write to output to a specific location on my
page?
TIA,
mcnewsxp

Nov 21 '06 #1
6 10834
mcnews wrote on 21 nov 2006 in microsoft.public.inetserver.asp.general:
How can I direct Response.Write to output to a specific location on my
page?
You cannot.

Response.Write only adds a sting to the rendered html stream,
that is sent to the client browser,
and THEN the browser makes a page of it.

What the broweser does with the html stream is beond ASP's grasp.

I suspect you do not mean just this:

<body>
<%
a = "<div style='position:absolute;top:20px;right:100px;widt h:200px;'>"
b = "</div>"
Response.Write a & "Hello World" & b
%>
</body>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Nov 21 '06 #2

"mcnews" <mc******@mindspring.comwrote in message
news:11**********************@m7g2000cwm.googlegro ups.com...
How can I direct Response.Write to output to a specific location on my
page?
TIA,
mcnewsxp
You can't. Response.Write outputs the supplied string in to the response
buffer.
Nov 21 '06 #3
How can I direct Response.Write to output to a specific location on my
page?

You cannot.
is there no way to create a server side label or something then assign
a value to it's text property?

Nov 21 '06 #4
mcnews wrote:
>>How can I direct Response.Write to output to a specific location on
my page?

You cannot.

is there no way to create a server side label or something then assign
a value to it's text property?
Of course there is. Evertjian showed an example of doing this.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Nov 21 '06 #5

"mcnews" <mc******@mindspring.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
>
How can I direct Response.Write to output to a specific location on my
page?

You cannot.

is there no way to create a server side label or something then assign
a value to it's text property?
ASP.NET offers this facility specifically. In classic ASP there is no such
thing as a server-side control. However:

<span id="myLabel">
<% Response.Write "Some Text" %>
</span>

will do it for you. One of the advantages of ASP.NET is that it moves away
from this inline coding model. On the other hand, others find it easier to
see exactly where their output will appear using the classic asp model,
rather than hunting the page for the location of a control.

Whatever floats your boat...

--
Mike Brind
Nov 21 '06 #6

Bob Barrows [MVP] wrote:
mcnews wrote:
>How can I direct Response.Write to output to a specific location on
my page?

You cannot.
is there no way to create a server side label or something then assign
a value to it's text property?

Of course there is. Evertjian showed an example of doing this.
you're right!.
it works perfectly.

Nov 21 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rob McLennan - ZETLAND | last post by:
Hi, I'm relatively clueless when it comes to correct ASP syntax. I'm testing out a search form for my company's website which is done in ASP. The results are displayed as per the code shown at the...
4
by: Matthew Wieder | last post by:
On my Page_Load event, i need to do some validation and then either let them proceed, or display a error message and boot them back to the previous page. Here is the code: ...
4
by: Nevyn Twyll | last post by:
Is there any way I can use a code-behind event (like a btn_Click event) to write some javascript into the Response? I was thinking of using Response.Write() to write the following code into the...
3
by: Stephen | last post by:
I have a function that calls: response.Write("<a href='www.yadda.com >Hello</a><br />") multiple times, creating hyperlinks like so: Hello Hello Hello Hello
2
by: Charles A. Lackman | last post by:
Hello, I have an ASPX page that is storing data into a session Variable: Session("Name") = "Chuck" When the User clicks "Next" on the page, it naviages to "Details.aspx", Details.aspx has two...
2
by: Jack | last post by:
Hi, I have a asp page. This page pulls all data from a query. Part of the code is as follows: <% Response.Write "<table border='1' width='80%' height='1' cellspacing='1' >" Response.Write...
6
by: Abel Chan | last post by:
Hi there, I am trying to use ASP.NET to populate list of files with hyper link from a specific directory. The following code works well but it populates the list to the top of the web page. I...
10
by: Ron | last post by:
Hi, I currently am generating a report by to my end user by retrieving data from my back end DB and concatenating strings together and place this string concatenation within a Label control. I...
4
by: Sagaert Johan | last post by:
Hi I have a page based on a masterpage: when i use Response.Write then the markup appears in the masterpage content location and not in the content of the page itself (not in the location of...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.