Solved

For each ctrl in controlCollection will not recognize Table rows

Posted on 2009-07-01
2
273 Views
Last Modified: 2012-08-14
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
Comment
Question by:cenetadmin
2 Comments
 
LVL 29

Expert Comment

by:David H.H.Lee
ID: 24760319
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
 
LVL 18

Accepted Solution

by:
Ajay Sharma earned 500 total points
ID: 24760754
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question