By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,457 Members | 1,334 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,457 IT Pros & Developers. It's quick & easy.

Question about Response.Write

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a

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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.