PC Review


Reply
Thread Tools Rate Thread

can you control where response.writes?

 
 
D
Guest
Posts: n/a
 
      23rd Aug 2006
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.





 
Reply With Quote
 
 
 
 
David Wier
Guest
Posts: n/a
 
      23rd Aug 2006
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>
>
>
>
>



 
Reply With Quote
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      23rd Aug 2006
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.
>
>
>
>
>
>

 
Reply With Quote
 
D
Guest
Posts: n/a
 
      24th Aug 2006
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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.
>>
>>
>>
>>
>>

>
>



 
Reply With Quote
 
D
Guest
Posts: n/a
 
      24th Aug 2006
Thanks. I came across an article from your cafe that was describing that and
using a progress type bar.

"Peter Bromberg [C# MVP]" <(E-Mail Removed)> wrote in message
news:AC213C7F-EA44-43BE-8537-(E-Mail Removed)...
> 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.
>>
>>
>>
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Control the response of xmlHTTP Samir Ibrahim Microsoft Dot NET 3 3rd Mar 2010 10:21 AM
set the value of a control in response to a control or event =?Utf-8?B?Y2FudHRvZ2dsZQ==?= Microsoft Access Form Coding 0 21st Sep 2006 10:51 PM
Default response in a new control based on a prior control's respo =?Utf-8?B?TWVsaXNzYQ==?= Microsoft Access Forms 3 1st Jul 2005 07:20 PM
User control's Response =?Utf-8?B?bXR2?= Microsoft ASP .NET 4 4th Jan 2005 07:11 PM
Lots of Response.Writes of HTML - How do YOU do it? TinyTim Microsoft ASP .NET 2 10th Aug 2004 04:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:21 AM.