We help IT Professionals succeed at work.

Iterate through "System.Web.UI.HtmlControls.HtmlTable" to ge to the table cells

424 Views
Last Modified: 2013-11-26
Good morning experts,
I need help. I have a Multiview Control.  In Each View, I have a table.  I need to be able to Iterate through all the table cells in order to set the values of controls I have in these cells
Currently, I find the Multiview Control by this....
Dim M As Control = MainContent.FindControl("MultiView1")  (where MultiView1 is the ID of the Multiview)
For Each ctlM In M.Controls
...
Next
Doing this, I see the "System.Web.UI.HtmlControls.HtmlTable"
BUT...I do not see the row,cell or most important, the UserControl inside the cells.
I need to see an example of script that itereates through the table, row and cell in order for the controls within the cells to be exposed.

Desparation is setting in.  PLease help if you are able.
Thanks
Howard


 
Comment
Watch Question

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.