473,387 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Question about Response.Write

Is there any way to make response.write NOT be the first thing on the
page? I have a page with the title and a sub title (not labels or
anything, just typed into the designer). I want the response.write text
to appear below the titles and formatted (bold, sized, centered, etc).
Thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #1
6 1485
response.write writes to the output steam when its called. controls write to
the response stream during onrender. to have response.write appear between
two controls, you have to call it between the rendering of the controls.
override the onreder of the page, then iterate your children, call the
render, then response.write after the proper control.

it would be easier to use a placeholder control.

-- bruce (sqlwork.com)
"Terry Olsen" <to******@hotmail.com> wrote in message
news:uK**************@TK2MSFTNGP09.phx.gbl...
Is there any way to make response.write NOT be the first thing on the
page? I have a page with the title and a sub title (not labels or
anything, just typed into the designer). I want the response.write text
to appear below the titles and formatted (bold, sized, centered, etc).
Thanks.

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #2

maybe a literal control would be your best bet?
--
rviray
------------------------------------------------------------------------
rviray's Profile: http://www.msusenet.com/member.php?userid=4211
View this thread: http://www.msusenet.com/t-1871084428

Nov 19 '05 #3
The ASP.NET way is to use a Label (or similar) control to output the text
dynamically at runtime in a position that's been defined at design time.

Here's more info:
http://SteveOrr.net/articles/ControlPositioning.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Terry Olsen" <to******@hotmail.com> wrote in message
news:uK**************@TK2MSFTNGP09.phx.gbl...
Is there any way to make response.write NOT be the first thing on the
page? I have a page with the title and a sub title (not labels or
anything, just typed into the designer). I want the response.write text
to appear below the titles and formatted (bold, sized, centered, etc).
Thanks.

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #4
Pat
As Steve adviced.
You could position label anywhere you want
Patrick

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
The ASP.NET way is to use a Label (or similar) control to output the text
dynamically at runtime in a position that's been defined at design time.

Here's more info:
http://SteveOrr.net/articles/ControlPositioning.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Terry Olsen" <to******@hotmail.com> wrote in message
news:uK**************@TK2MSFTNGP09.phx.gbl...
Is there any way to make response.write NOT be the first thing on the
page? I have a page with the title and a sub title (not labels or
anything, just typed into the designer). I want the response.write text
to appear below the titles and formatted (bold, sized, centered, etc).
Thanks.

*** Sent via Developersdex http://www.developersdex.com ***


Nov 19 '05 #5
I have a text file that I allow a supervisor to edit. This file contains a
list of items required in disaster recovery kits. When someone views the
web page, I want it to display the contents of the file between the header &
footer of the page. I will try the label idea. I just thought there would
be a way to avoid using any controls on this particular page.

"Pat" <na********@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
As Steve adviced.
You could position label anywhere you want
Patrick

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
The ASP.NET way is to use a Label (or similar) control to output the text
dynamically at runtime in a position that's been defined at design time.

Here's more info:
http://SteveOrr.net/articles/ControlPositioning.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Terry Olsen" <to******@hotmail.com> wrote in message
news:uK**************@TK2MSFTNGP09.phx.gbl...
> Is there any way to make response.write NOT be the first thing on the
> page? I have a page with the title and a sub title (not labels or
> anything, just typed into the designer). I want the response.write
> text
> to appear below the titles and formatted (bold, sized, centered, etc).
> Thanks.
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***



Nov 19 '05 #6
Steve, I just wanted to let you know your last asp.netPro article "Passing
Values - How Do I Pass Values Between Pages, Controls, and Other Objects"
was one of your finest contributions ever. Thank you.
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
The ASP.NET way is to use a Label (or similar) control to output the text
dynamically at runtime in a position that's been defined at design time.

Here's more info:
http://SteveOrr.net/articles/ControlPositioning.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Terry Olsen" <to******@hotmail.com> wrote in message
news:uK**************@TK2MSFTNGP09.phx.gbl...
Is there any way to make response.write NOT be the first thing on the
page? I have a page with the title and a sub title (not labels or
anything, just typed into the designer). I want the response.write text
to appear below the titles and formatted (bold, sized, centered, etc).
Thanks.

*** Sent via Developersdex http://www.developersdex.com ***


Nov 19 '05 #7

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

Similar topics

5
by: John | last post by:
Below is my code. It seems that no matter what I do, I cannot get the following list of places to start at the top of the cell. It is always centered in the middle of the cell. Is vAlign the...
9
by: SASRS | last post by:
Here is my code. I am trying to see if I can put a %@ LANGUAGE="VBSCRIPT" %> <% FieldA = Request.QueryString("A") FieldB = Request.QueryString("B") FieldC = Request.QueryString("C") ...
5
by: Luiz Vianna | last post by:
Guys, I need to send some info to my client while I'm processing some stuff. The flow will be something like : -process -response -process -response .... I imagine to use response.flush...
8
by: Jeff | last post by:
Ok gang, I am going to try and explain my question. I have a page where a person's position is listed. This is what I am using to get that position. I first sort by the round field in the DB,...
9
by: Mike | last post by:
I have some simple code see below. I have response written out the query and it is valid and returns values when ran directly against my db, which is Oracle. My OS is Win 2003. My question is...
1
by: fuelvolts | last post by:
Website in question: http://econweb.tamu.edu/graduate-beta2.asp?yr=0 I want to show all of our Ph.D. students in multiple tables according to years of experience. Right now the code I have only...
19
by: the other john | last post by:
I'm trying to enhance a script to do the following things. 1). detect the first four words of a paragraph and stylize them (already does that) 2). Capitalize and stylize the first letter of each...
14
by: Merovingian | last post by:
I'm maintaining an ASP Classic file that has HTML withing Response.Write methods...such as. <% Response.Write "<table><tr><td>" Response.Write testVariable Response.Write...
4
by: =?Utf-8?B?Y3NsZWltYmFjaA==?= | last post by:
I am having trouble with uploading a file to a website. I can not figure what I am doing wrong. I have a .asp file that you put a username and password in that is connected to a database. One of...
22
by: Neil Gould | last post by:
Or... when is a script not a script? I have several modules for managing different aspects of our club's website, most of which are multi-page. Does setting such things as server.ScriptTimeout...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.