Link to home
Start Free TrialLog in
Avatar of timbersnow
timbersnow

asked on

Update asp:Label on web page during for / next loop in code behind

During a for / next in the code behind, I want to update a label on the page with a counter, kind of like:

    Number of records processed: xx

Inside the loop i put a textbox1.text = counter, and counter is being incremented.  Nothing shows up on the page until AFTER the process is compelted.  BTW - i'm using VB.net.

I feel stupid ... HELP!

Cheers,

Gp.
Avatar of Sammy
Sammy
Flag of Canada image

you wont see it until the loop is done because your code is ran on the server
if you want to see the label value increments you will need to use a client side javascript
 
what do you mean by  record processed ? What kind of process is that ?
Avatar of timbersnow
timbersnow

ASKER

i'm doing some geocoding (Lat/Long) on specific addresses.  For each address in the table (MSSQL), i do a address lookup and update that records Lat / Long, and then NEXT ...

I want to show a counter and maybe a Processing Address: xxx, xxx on the page.

Gp.
ASKER CERTIFIED SOLUTION
Avatar of makzee
makzee

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial