Solved

For each ctrl in controlCollection will not recognize Table rows

Posted on 2009-07-01
2
271 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…
The viewer will learn how to count occurrences of each item in an array.

786 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