Author: Lybra | Posted on: 12/1/2009 3:27:33 AM | Views : 222

Hi everybody,
I've got a problem in setting the focus on a dynamictable's textbox... how can I do it?


Private Sub CreateDynamicTable() ph.Controls.Clear() Dim tbl As Table = New Table() tbl.ID = "tblMain" tbl.Attributes.Add("runat", "server") ph.Controls.Add(tbl) For r As Integer = 0 To (tblWD.Rows.Count - 1) Dim tr As TableRow = New TableRow() For j As Integer = 1 To 3 Dim tc As TableCell = New TableCell() Dim txtBox As TextBox = New TextBox() Select Case j Case Is = 1 txtBox.Width = "120" txtBox.Text = tblWD.Rows(r).Item("wanIP") txtBox.ID = "IP_" & r If j = 1 Then t ...

Go to the complete details ...