Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 281
  • Last Modified:

For each ctrl in controlCollection will not recognize Table rows

I have some code below that searches through the form for controls to set some attributes.  Most of the form is using absolute positioning, etc...but there is a section that uses a table, rows, cols, etc...This code doesn't see the controls in the table.  Is there anything I can do other than converting the table's rows, controls to absolute positioning?
        Dim ctrl As Control
        For Each ctrl In formControls
            If Not ctrl.ID Is Nothing Then
0
cenetadmin
Asked:
cenetadmin
1 Solution
 
David H.H.LeeCommented:
Hi cenetadmin,
>>..Is there anything I can do other than converting the table's rows, controls to absolute positioning?
You can use client script to iterate <form>'s collections and apply the absolute position effect on the table's style property.
0
 
Ajay SharmaCommented:
How are the table rows are getting generated?

If you are generating them using asp.net's HTMLTable class then set the HTMLTableRow's runat="Server" property at run time.

If it's an simple html table then you can't access these from your server side code as these are client side.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now