Solved

For each ctrl in controlCollection will not recognize Table rows

Posted on 2009-07-01
2
274 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

751 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