here is the code
Dim arr() As String
Dim record As Int32
record = 0
For Each div As System.Web.UI.Control In plholder.Controls
If div.[GetType]().Name = "HtmlGenericControl" Then
Dim hml As HtmlGenericControl = DirectCast(div, HtmlGenericControl)
Dim str12 As String
str12 = hml.TagName
str12 = hml.ID
For Each table As System.Web.UI.Control In div.Controls
If table.[GetType]().Name = "HtmlTable" Then
Dim htab As HtmlTable = DirectCast(table, HtmlTable)
Dim str13 As String
str13 = htab.TagName
str13 = htab.ID
For Each row As System.Web.UI.Control In table.Controls
Dim hrow As HtmlTableRow = DirectCast(row, HtmlTableRow)
Dim str14 As String
str14 = hrow.TagName
str14 = hrow.ID
For Each cell As System.Web.UI.Control In row.Controls
Dim hcell As HtmlTableCell = DirectCast(cell, HtmlTableCell)
Dim str15 As String
str15 = hcell.TagName
str15 = hcell.ID
For Each textbox As System.Web.UI.Control In cell.Controls
If textbox.GetType Is GetType(WebControls.TextBox) Then
Dim tbox As TextBox = CType(textbox, System.Web.UI.Control)
Dim str16, str17 As String
str16 = tbox.TextMode
str16 = tbox.ID
str17 = tbox.Text
If tbox.Text <> String.Empty Then
arr(record) = str17
record = record + 1
MsgBox(arr(record))
End If
End If
Next 'textbox
Next 'cell
Next 'row
End If
Next 'table
End If
Next 'div
This post has been edited by Martyr2: 19 November 2010 - 11:05 PM
Reason for edit:: Please use code tags in the future, thanks!

New Topic/Question
Reply
MultiQuote







|