473,840 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

can you control where response.writes ?

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
4 1301
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
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=Sta rtingTaskA
label1.text+=St artingTaskB - - 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.n etwrote in message
news:uV******** ******@TK2MSFTN GP06.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
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********@noS pamhotmail.comw rote in message
news:e1******** ******@TK2MSFTN GP04.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=Sta rtingTaskA
label1.text+=St artingTaskB - - 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.n etwrote in message
news:uV******** ******@TK2MSFTN GP06.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
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*******@yaho o.nospammin.com wrote in message
news:AC******** *************** ***********@mic rosoft.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
4772
by: TinyTim | last post by:
I'm a newbie at ASP & HTML. It seems that when you use server side code and you're going to return a customized HTML form with several fields and labels, you have to do an extensive amount of Response.Writes. Are there any tools that will let you design the form then convert that form to Response.Writes that you can further customize with ASP logic? For instance: use Dreamweaver to design the form, then another program to convert to...
3
3893
by: Igor Belagorudsky | last post by:
Hi, i am trying to analyze data submitted in a form but the problem is that when i try to create the controls in code (which is what i want to do), it throws an obect not found exception on postback when i try to Page.FindControl: private void Page_Load(object sender, System.EventArgs e) { if (Page.IsPostBack) {
3
1440
by: sean | last post by:
Hi There, I am trying to display some textboxes on my page, When I run the code the textbox is written to the page (when I view source) but not to the screen. Could someone tell me if I have the syntax correct? Sean - thanks in advance for your answer !-- code
0
1002
by: Manikkoth | last post by:
Hello, We are using a user control and a HttpHandler to display an image in a grid. The images are stored in a RDBMS. Here is the approach that we use in brief. The cells are added to the grid in the page load. One of the cell is the control. The control Response.Writes an img tag. The src for the img tag is "something.img". Now we have a HttpHandler for *.img, the hander reads the image from DB and does a Response.BinaryWrite. Everything...
3
2840
by: Peter | last post by:
Hello, We are inserting a side menu to our application using a class that is writing HTML on all our pages. This is a part of the code as an example: writer.Write(" <table WIDTH=""100%"" BORDER=""0"" CELLSPACING=""0"" CELLPADDING=""0"" ID=""Table1""> " & vbNewLine) writer.Write(" <tr>" & vbNewLine) writer.Write(" <td>" & vbNewLine)
1
1162
by: Christian Perthen | last post by:
Hi, I have a sub in the codebehind page of a user control file that writes html. How do I get the sub triggered and output the html in the content page? See my approach below. Partial Class contentAffiliate Inherits System.Web.UI.UserControl
2
16105
by: glenn | last post by:
Hi folks, I am trying to determine which item in a DropDownList Web control has been selected. I have posted an OnSelectedIndexChanged subroutine in my code with a reference to the subroutine in my asp tag as shown here: <asp:DropDownList id="ddlTo" runat="server"
2
1670
by: John Smith | last post by:
I am trying to use the menu control for a tabbed menu system but it's frustrating the hell out of me. The full code is listed below. The trouble that I'm having is that, when the user clicks on a menu item, the page will send back the id of the menu that was clicked. But it doesn't do that and I can't figure out how to make it work. Looking at the code below, the variable "strDBView" is always null. But it's a global variable and gets...
2
2332
by: ThatsIT.net.au | last post by:
I have this code that writes a pie chart in a asp.net page, but I want to use it in a server control. When I try I get a error on the last line "Response.OutputStream" Obviously there is no response object but how do I write it to screen? Dim objBitmap As New System.Drawing.Bitmap(400, 440) Dim objGraphics As System.Drawing.Graphics objGraphics = System.Drawing.Graphics.FromImage(objBitmap) objGraphics.Clear(Drawing.Color.White)
0
9702
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10665
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10302
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7845
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7023
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4498
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 we have to send another system
2
4080
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3139
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.