Solved

For each ctrl in controlCollection will not recognize Table rows

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. 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 : Go t…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now