473,406 Members | 2,404 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,406 software developers and data experts.

Progress monitor for ASP.Net?

My manager has asked me to do something that I don't think is possible with
a web browser interface. He is sure it IS possible. If he is right, can you
tell me how to do it?

The user submits a form asking when an event can be scheduled. The web
server runs through the database to find an available day. It may have to
check several days. When a day is found, the web server returns the page to
the browser displaying the day that was found. The same sort of thing every
ASP.Net page does.

My manager would like the server to send the browser "status reports": "Now
Checking Monday"; "Now Checking Tuesday"; etc. I don't think it can be done,
because once the server responds to the browser, the server is finished. Any
ideas?

Much obliged.
Nov 20 '05 #1
2 1211
There might be ways to do it, in the way expedia displays a 'searching'
message while looking for flights, etc. There are examples of this on the
web, you can google for it, though the typical examples just have one
'working' message, and don't keep changing the message - but you can
probably adapt their method.

You can definitely do this with a lot of client side work, by having the
client make calls to a web page via XMLHTTP, then getting back the result
and updating the display. XMLHTTP is only available in IE 5.5 and higher,
so this would be a limitation.

"Geoff Pennington" <pe*********@stic2.com.NO!SPAM!> wrote in message
news:Oo**************@TK2MSFTNGP11.phx.gbl...
My manager has asked me to do something that I don't think is possible with a web browser interface. He is sure it IS possible. If he is right, can you tell me how to do it?

The user submits a form asking when an event can be scheduled. The web
server runs through the database to find an available day. It may have to
check several days. When a day is found, the web server returns the page to the browser displaying the day that was found. The same sort of thing every ASP.Net page does.

My manager would like the server to send the browser "status reports": "Now Checking Monday"; "Now Checking Tuesday"; etc. I don't think it can be done, because once the server responds to the browser, the server is finished. Any ideas?

Much obliged.

Nov 20 '05 #2
Hi Geoff,

I think you can reach your goal when you use this sample I once made.
(The only thing I do not know is if it is fast enough on Internet I made it
once as a sample, however did never optimized it, because it is a crazy
sample.)

When the image is to slow then you can maybe to it with a Iframe, as I said
I never tried.

I hope this will work for you, or maybe you get a better answer.

Cor

\\\Form 1 Needs a imagebox on the page
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Me.Image1.Height = New Unit(32)
Me.Image1.Width = New Unit(200)
Image1.Visible = True
Dim scriptString As String = "<script language=JavaScript>" & _
"setclock(); function setclock(){document.images.Image1.src = " & _

"'http://localhost/WebClock/WebForm2.aspx';setTimeout('setclock()',1000)}</s
cript>"
Page.RegisterStartupScript("setclock", scriptString)
End Sub
///
\\\Form2 needs nothing
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Response.Cache.SetExpires(DateTime.Now.AddTicks(50 0))
Dim myForeBrush As Brush = Brushes.Black
Dim myFont As New Font("Times New Roman", 8, FontStyle.Regular)
Dim textHeight As Single
Dim bm As New Bitmap(120, 20)
Dim g As Graphics = Graphics.FromImage(bm)
g.Clear(Color.White)
Dim textSize As SizeF = g.MeasureString("now.tostring", myFont)
g.DrawString(Now.ToString, myFont, myForeBrush, _
New RectangleF(0, 0, 120, 20))
Dim ms As New IO.MemoryStream
Dim arrImage() As Byte
bm.Save(ms, Imaging.ImageFormat.Bmp)
arrImage = ms.GetBuffer
Response.BinaryWrite(arrImage)
g.dispose
End Sub
///
Nov 20 '05 #3

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

Similar topics

0
by: Brendan Smith | last post by:
There's a point in our ASP.NET application where we fire off a web service asynchronously on post-back, then monitor the progress of the web service until it completes. While the service is...
3
by: Andrew | last post by:
I'm doing a big old join on one table with 10,000,000 rows, and another with 400,000 rows. As you can imagine, this is taking a long time. Is there any way to monitor the progress of the join...
3
by: Brian Birtle | last post by:
**** A CHALLENGE TO THE GURUS - refute the statement "It's impossible to build a file upload progress meter using ASP.NET" **** First person to prove me wrong gets "All Time .NET Programming GOD"...
14
by: Todd Denlinger | last post by:
Ok, I know how to upload a file in asp.net using the <input type="file" runat="server"> control. What I don't know how to do is monitor the progress of the upload so that I can show the...
1
by: BLUE | last post by:
I want to pass chunks of an xml file or an entire xml file to my WS. I'm surprised to see fro MSDN that no System.Xml class is serializable (XmlDocument, XmlElement and XmlNode): - I should use a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
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...
0
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...

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.