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

can you control where response.writes?

P: n/a
D
Hi

I'm obviously still learning here but what I've created is a page with a
calendar and button. When I click the button I do a number of tasks and
would like to output the progress in messages such as

Starting TaskA
Processing TaskA
Completed TaskA

Starting TaskB
Processing TaskB
Processing Failed for TaskB

This page is a child page of a master page that is actually a child of
another master page, creating a look like the MSDN site with a tree control
on the left side and the logo and other info across the top (the highest
master page in this set up) and content in the center.

When I do a response.write the text comes out across the top of the screen,
in the master page. So I'm trying to think of how I could display the text
below the button on the content page. I've looked at various progress bar
setups but most of them are using a single line and the next message erases
the previous message. I'm thinking more like a list box that gets filled
with messages but I cannot think of how to accomplish this.

Thanks alot for any ideas you might have.

Best Regards.

Aug 23 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
D,
Besides David's comments, you should also be aware that your ASP.NET Page
class is compiled, not interpreted as in classic ASP, so if you are
attempting to output timed messages (somthing you can do with interpreted
languages) you may be quite disappointed.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"D" wrote:
Hi

I'm obviously still learning here but what I've created is a page with a
calendar and button. When I click the button I do a number of tasks and
would like to output the progress in messages such as

Starting TaskA
Processing TaskA
Completed TaskA

Starting TaskB
Processing TaskB
Processing Failed for TaskB

This page is a child page of a master page that is actually a child of
another master page, creating a look like the MSDN site with a tree control
on the left side and the logo and other info across the top (the highest
master page in this set up) and content in the center.

When I do a response.write the text comes out across the top of the screen,
in the master page. So I'm trying to think of how I could display the text
below the button on the content page. I've looked at various progress bar
setups but most of them are using a single line and the next message erases
the previous message. I'm thinking more like a list box that gets filled
with messages but I cannot think of how to accomplish this.

Thanks alot for any ideas you might have.

Best Regards.

Aug 23 '06 #2

P: n/a
A response.write will now, due to the paradigm shift between Classic ASP and
ASP.Net always write at the top of the page.
To be able to put text in certain, exact places, create a lable where you
want the text - then, instead of doing a response.write, use:
Label1.text=StartingTaskA
label1.text+=StartingTaskB - - of course, you'll need to add "<br />" if you
want line feeds.......

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com

"D" <Da**@nothing.netwrote in message
news:uV**************@TK2MSFTNGP06.phx.gbl...
Hi

I'm obviously still learning here but what I've created is a page with a
calendar and button. When I click the button I do a number of tasks and
would like to output the progress in messages such as

Starting TaskA
Processing TaskA
Completed TaskA

Starting TaskB
Processing TaskB
Processing Failed for TaskB

This page is a child page of a master page that is actually a child of
another master page, creating a look like the MSDN site with a tree
control
on the left side and the logo and other info across the top (the highest
master page in this set up) and content in the center.

When I do a response.write the text comes out across the top of the
screen,
in the master page. So I'm trying to think of how I could display the text
below the button on the content page. I've looked at various progress bar
setups but most of them are using a single line and the next message
erases
the previous message. I'm thinking more like a list box that gets filled
with messages but I cannot think of how to accomplish this.

Thanks alot for any ideas you might have.

Best Regards.



Aug 23 '06 #3

P: n/a
D
I was reading an article on nested master pages and where 'writes' go (at
the top level of the control tree) so I'm clear on what was happening now.

I ended up using something similiar but with a multi line text box. I
actually created a control that has a clear function and a logmessage
function that adds a new line character.

Not as dynamic as I wanted but works well for what I need.
Thanks
"David Wier" <da********@noSpamhotmail.comwrote in message
news:e1**************@TK2MSFTNGP04.phx.gbl...
>A response.write will now, due to the paradigm shift between Classic ASP
and
ASP.Net always write at the top of the page.
To be able to put text in certain, exact places, create a lable where you
want the text - then, instead of doing a response.write, use:
Label1.text=StartingTaskA
label1.text+=StartingTaskB - - of course, you'll need to add "<br />" if
you
want line feeds.......

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com

"D" <Da**@nothing.netwrote in message
news:uV**************@TK2MSFTNGP06.phx.gbl...
>Hi

I'm obviously still learning here but what I've created is a page with a
calendar and button. When I click the button I do a number of tasks and
would like to output the progress in messages such as

Starting TaskA
Processing TaskA
Completed TaskA

Starting TaskB
Processing TaskB
Processing Failed for TaskB

This page is a child page of a master page that is actually a child of
another master page, creating a look like the MSDN site with a tree
control
>on the left side and the logo and other info across the top (the highest
master page in this set up) and content in the center.

When I do a response.write the text comes out across the top of the
screen,
>in the master page. So I'm trying to think of how I could display the
text
below the button on the content page. I've looked at various progress bar
setups but most of them are using a single line and the next message
erases
>the previous message. I'm thinking more like a list box that gets filled
with messages but I cannot think of how to accomplish this.

Thanks alot for any ideas you might have.

Best Regards.




Aug 24 '06 #4

P: n/a
D
Thanks. I came across an article from your cafe that was describing that and
using a progress type bar.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.comwrote in message
news:AC**********************************@microsof t.com...
D,
Besides David's comments, you should also be aware that your ASP.NET Page
class is compiled, not interpreted as in classic ASP, so if you are
attempting to output timed messages (somthing you can do with interpreted
languages) you may be quite disappointed.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"D" wrote:
>Hi

I'm obviously still learning here but what I've created is a page with a
calendar and button. When I click the button I do a number of tasks and
would like to output the progress in messages such as

Starting TaskA
Processing TaskA
Completed TaskA

Starting TaskB
Processing TaskB
Processing Failed for TaskB

This page is a child page of a master page that is actually a child of
another master page, creating a look like the MSDN site with a tree
control
on the left side and the logo and other info across the top (the highest
master page in this set up) and content in the center.

When I do a response.write the text comes out across the top of the
screen,
in the master page. So I'm trying to think of how I could display the
text
below the button on the content page. I've looked at various progress bar
setups but most of them are using a single line and the next message
erases
the previous message. I'm thinking more like a list box that gets filled
with messages but I cannot think of how to accomplish this.

Thanks alot for any ideas you might have.

Best Regards.


Aug 24 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.