Hello everybody,

I'm new user.

I would like to know how to count in real time, on-screen, during a for loop.

I know that ASP does not allow this, But I think maybe I should use a JavaScript inside the loop.


___________________________________________
The Code:

'##### After reading from database and creating the RecordSet, I made the for loop ###########


for x = 0 to 2000

Member_Name = allMemberData(mM_NAME,x)
Member_EMail = allMemberData(mM_EMAIL,x)
Member_id = allMemberData(mM_ID,x)

Dim new_sha256


new_sha256 = sha256(Member_Name & Member_EMail & Member_id)


'################ THEN I WRITE ON DATABASE #############
strSql = "UPDATE FORUM_MEMBERS SET M_NOMAILCODE = " & "'" & new_sha256 & "'" & " WHERE MEMBER_ID = " & Member_id
my_conn.execute (strSql)

'###################################################################


This works perfectly but the "for loop" are 2000, and a calculation as the sha256 requires a bit 'of time, and I would like, on-screen, during the loop, to see where it came, in real-time.
At the same way as a "progression bar", or as when software loads some components, which are seen quickly scroll during startup.

Like a code response.write "Hello, I'm now processing the member ID " & Member_id
how to say
Hello, I'm now processing the member ID 1
Hello, I'm now processing the member ID 25
Hello, I'm now processing the member ID 40
Hello, I'm now processing the member ID 100
and so on" up to 2000

But if I insert a "response.write" inside the loop, I have as result a number list (the Member ID), at the end of script, not during.
So I thought I'd better use a Javascrit within the ASP, during the loop, but I don't know what to put in.


I'm Italian, but thanks to google translator I hope I explained.


Please, can anyone help me to write the code?



Thanks

T4M