I have a number of text fields named kappe1, kappe2 .... kappe10. In JavaScript I can use the code below for setting the values of all of the text fields:
But what about ASP.Net? If I have the same 10 text fields, how can I make a sub or a function that do the same? Something like the code below:Code:for (i=1;i<11;i++){ document.forside.elements('kappedim'+i).value = "90"; }
How can I make it work? How can the code "label1.text=90" be created using for ... next?Code:Dim i As Integer For i = 1 To 10 label & i & .text = 90 Next


Reply With Quote