Reloading

K

kuldeepiitk

Hi everyone,

I am making an application which loades a HTML page, does anybody have
any idea how we can make sure in VB.NET that a HTML page is loaded
fully or not.

TIA
~kuls
 
K

kuldeepiitk

hi Phil,

well i mean
"Have I got the full Response from the Server"
is there any way i can make sure of it, so that i should not hardcode
in code.
also one more thing, is there any way that i can make my application
wait for some time so that page loads in that time, right now I am
using following code,

=================================
Public Sub waitBySecs(ByVal nNumSecs As Integer)
Dim d1, d2 As DateTime

d1 = DateTime.Now.AddSeconds(nNumSecs)
d2 = DateTime.Now

While DateTime.Compare(d2, d1) < 0
Application.DoEvents()
d2 = DateTime.Now
End While
End Sub
====================================

but the problem in this function is that it takes the whole CPU usage,
so I am looking for an alternative for it.

TIA
~kuls


Phil Winstanley [Microsofwrote: Kuls,

By your question do you mean one of these: -

Is the HTML Valid?
Have I got the full Response from the Server?
Is the HTML I'm viewing from a page that has not generated an error?

Thanks,
Phil Winstanley
Microsoft ASP.NET MVP
http://www.myservicescentral.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top