>vorrei fare in maniera che un textbox in asp.net ogni volta che
>perda il focus possa impostare nel valore introdotto dei zeri
>all'inizio (es. 1 = 001, 20 = 020, 137 = 137), spero essere stato
>chiaro
if textbox.text.lenght < 3 then
dim a as integer=textbox.text.lenght
dim text as string=textbox.text
textbox.text=string.empty
for i =1 to (3-a)
textbox.text &="0"
next
textbox.text &=text
endif
Buttata così al volo dovrebbe funzionare ...prova a vedere.
Facci sapere...
Ciao