Solved

Accessing  <table> tag in code-behind file

Posted on 2008-06-11
1
1,219 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

19 Experts available now in Live!

Get 1:1 Help Now