473,387 Members | 1,619 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,387 software developers and data experts.

get Streamreader content before page is loaded

Hello,

I am developping an application that needs to launch several asp scripts at
the same time, to I have created threads which use one streamreader each.
This works fine, except that I need to be able to view the page while it is
still loading. In this case I can't use readtoend method, can I ?
Since the asp scripts output might be one letter per second or less, it
doesn't seem to work with "readblock" either.
Any suggestion pls ?
Nov 20 '05 #1
5 1644
Cor
Hi Shad,

To make it more clear, (it is not at all for me, but maybe that is because
my knowledge).

An classic asp application has as start mostly a user, what starts your
process and from where are you loading it (reading it) ?

It sounds for me a little bit as classic asp using a database to save the
scripts, but then IIS needs the whole script before it can start processing
it I thought.

Cor

I am developping an application that needs to launch several asp scripts at the same time, to I have created threads which use one streamreader each.
This works fine, except that I need to be able to view the page while it is still loading. In this case I can't use readtoend method, can I ?
Since the asp scripts output might be one letter per second or less, it
doesn't seem to work with "readblock" either.
Any suggestion pls ?

Nov 20 '05 #2
Hmm, sorry, let me try to give more details.
Actually I have about 100 asp scripts (web page) that do some processing,
and output debug information while they run.
So when you launch them in a web browser, you can see what they have
already done and what's left.
Now I want my VB.NET application to run several of them at the same time.
This works fine with multi threads and a streamreader via "readtoend"
method, however this way I can't see the progression for the scripts.
So I'd like to read block by block, or any other method that would allow me
to see what a script is doing "live".
Nov 20 '05 #3
Cor
Hi Shad,

In my opinion if the streamreader don't give you the posibility to do
something record by record, than there is no other way. Probably your asp
script is just one textfile, so it will be read in one time.

Your problem is very specific.
So I doubt it that you get an answer that fits your problem here, but maybe
it is something for the
microsoft.public.dotnet.framework.aspnet group.

On the other hand it is also something maybe for the
microsoft.public.dotnet.framework.adonet group

I think that you have in those newsgroups a better change than here.

Cor
Hmm, sorry, let me try to give more details.
Actually I have about 100 asp scripts (web page) that do some processing,
and output debug information while they run.
So when you launch them in a web browser, you can see what they have
already done and what's left.
Now I want my VB.NET application to run several of them at the same time.
This works fine with multi threads and a streamreader via "readtoend"
method, however this way I can't see the progression for the scripts.
So I'd like to read block by block, or any other method that would allow me to see what a script is doing "live".

Nov 20 '05 #4
Well, my asp scripts' output is a web page, but that's not the matter.
What I'd actually like to kno if whether there is another component better
fitted for this.
even if it were a simple but slow web page the problem would be the same :
how to get it little by little so I can see what's happening.
(without any link to a database or asp.net)
Nov 20 '05 #5
Cor
Hi Shad,

Maybe I did misunderstood it

When it just are webpages, than you can look what mshtml can do for you.
That you can read and use in the same way as javascript.
It covers the DOM.

You have to set a reference for that to Microsoft.mshtml in the normal Net
reference.

Do not set an import because than your IDE becomes slower than you ever saw.

You have everytime to reference it as by instance mshtml.document.all.tags

It is terrible if you want to avoid late bindings because than you have to
cast almost everything, but you can have a look for it.

Cor

Well, my asp scripts' output is a web page, but that's not the matter.
What I'd actually like to kno if whether there is another component better
fitted for this.
even if it were a simple but slow web page the problem would be the same :
how to get it little by little so I can see what's happening.
(without any link to a database or asp.net)

Nov 20 '05 #6

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

Similar topics

5
by: Andy Mee | last post by:
Hello one and all, I'm developing an Asp.NET system to take a CSV file uploaded via the web, parse it, and insert the values into an SQL database. My sticking point comes when I try to split()...
2
by: JPL Verhey | last post by:
(i hope somebody (else) will read and have an idea! Thnx) Hi, With a script in a popup window, I want to check if certain content is present in a page loaded into the frame "main" of the...
6
by: No_Excuses | last post by:
All, I am interested in reading the text of a web page and parsing it. After searching on this newgroup I decided to use the following: ******************************* START OF CODE...
1
by: R.L. | last post by:
See the code below, var 'content ' is suppose to be "Hello!", not "". Who knows why? Thanks ---------------------------------------- string text = "hello!"; MemoryStream stream = new...
3
by: Arno | last post by:
Hi, I'm using TcpClient for communication between two PC running a small piece of software. The protocol used has been designed internally and is HTTP similar (command line, headers, body). A...
5
by: z. f. | last post by:
Hi, i have a vb.net windows application that makes HTTP requests with the framework's HttpWebReqeuest object. i have about 10 different requests that takes between 30 to 500 for the...
4
by: Hexman | last post by:
Code below ---- I've asked a similar question on this forum earlier. This is a slightly different situation. Previous Question ---- I'm trying to save some specific web pages to disk as...
9
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
2
by: Stratum | last post by:
It's an old question, and I apologize for raising it again. I use ImageButton objects on my ASP.Net master page to navigate to content pages. For each button, I have two images. One image shows...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.