Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 24th, 2005, 11:50 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamic Tables

I trying to create a dynamic table to display my data. Depending on the situation, the number of columns can change - that's why I am building the table dynamically.

However, my code is not displaying a simple test table.
Code:
Sub BuildTable()
        Dim bigtable As New Table
        Dim tblTR As New TableRow
        Dim tblTD As New TableCell

        bigtable.BorderWidth.Pixel(1)
        tblTD.Text = "test"
        tblTR.Cells.Add(tblTD)
        bigtable.Rows.Add(tblTR)
    End Sub
    Why is this not displaying? I am sure that the Sub is executing.

Thanks in advance for your comments.

- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.
 
Old February 24th, 2005, 12:12 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found the answer.

I never placed a table control in the UI to refer to in the codebehind (duh).

My apologies.

- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic tables soulfly73 Classic ASP Basics 3 November 17th, 2008 07:06 PM
help writing dynamic form data to dynamic table ublend SQL Server ASP 1 June 1st, 2007 08:09 AM
help writing dynamic form data to dynamic table ublend Classic ASP Professional 1 June 1st, 2007 08:08 AM
Dynamic tables in DataSet melvik C# 9 September 26th, 2006 06:53 AM
Re: Dynamic html tables with xsl? purple XSLT 0 November 2nd, 2005 12:01 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.