Timer control
Hi Friends
How can I use the timer control in asp.net webpage. I have tried but it doesn't work. Shows no result.
I am trying to retrieve data from a table and display that in a textbox. When the date reaches to the last position, it moves to the first record and the again to the end. This has to be on a timer control. How can I do that, below is a part of code from my project.
dim a (2) as integer // I have 3 records in my table
dim z as integer
dim j as integer
Dim table As New DataTable
table = ds.Tables("manu")
For z = 0 To table.Rows.Count - 1
a(z) = table.Rows(z).Item(0).ToString
TextBox1.Text = a(j)
If j = table.Rows.Count Then
j = 0
j = j + 1
End If
next
This I displayed in a timer control, but it doesn't work. Please help this is very urgent
Thanks
__________________
Regards
Mike
|