[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Accessing  <table> tag in code-behind file

Posted on 2008-06-11
1
Medium Priority
?
1,230 Views
Last Modified: 2013-11-26
I have created a webpage using <table> tag. I want to iterate through the rows <tr> of this table from code-behind. How can I access this <table> tag from code-behind?
0
Comment
Question by:ShreyaTrivedi
1 Comment
 

Accepted Solution

by:
ShreyaTrivedi earned 0 total points
ID: 21759212
I got the solution:

HtmlTable t;
foreach (Control ctl in this.FindControl("form1").Controls)
{
            if (ctl is HtmlTable)
            {
                t = (HtmlTable)ctl;
            }
}
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

873 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