testare
Programmer
- Jan 21, 2005
- 127
I would like to loop and then show it on the browser.
For example 1 should be 01 and so on.
I don't want the numbers to be shown like this.
2
3
4
I would like to have the number displayed like this.
01
02
03
04
I noticed that format doesn't work in ASP like in Visual Basic.
In vb i do it like this.
But what should i do in ASP
For example 1 should be 01 and so on.
I don't want the numbers to be shown like this.
2
3
4
I would like to have the number displayed like this.
01
02
03
04
I noticed that format doesn't work in ASP like in Visual Basic.
In vb i do it like this.
Code:
Dim i As Long
For i = 0 To 42
Debug.Print Format(i, "00")
Next
But what should i do in ASP