Solved

create table/rows from code behind

Posted on 2006-11-04
3
1,422 Views
Last Modified: 2012-06-21
how do i generate table/rows from code behind, a examle will be better.

ps: sorry i have only 15 points and i wish i could increase more.

here is my table looks like in html:

//
<table>
            <tr>
                <td style="width: 100px">
                     </td>
                <td style="width: 100px">
                     </td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
                <td style="width: 100px">
                </td>
            </tr>
        </table>
0
Comment
Question by:Islam1424
3 Comments
 
LVL 2

Assisted Solution

by:beasha
beasha earned 25 total points
ID: 17876329
i would insert a cell on my form designer, run it as a server control.

code behinde:

mycell.innerHtml = "<table><tr><td style="width: 100px"></td><td style="width: 100px"></td><td style="width:100px"></td></tr><tr><td style="width: 100px"></td><td style="width: 100px"></td><td style="width: 100px"></td></tr><tr><td style="width: 100px"></td><td style="width:100px"></td><tdstyle="width: 100px"></td></tr><tr><td style="width: 100px"></td><td style="width: 100px"></td><td style="width: 100px"></td></tr><tr>............</table>"


hope this is what you want

bashar
0
 

Author Comment

by:Islam1424
ID: 17877007
no dear thats NOT the correct way of doing

thanks for response.
0
 
LVL 11

Accepted Solution

by:
ethoths earned 25 total points
ID: 17880031
you do it by creating the table, row and cell (with new) and adding them to the forms controlc collection...

Dim cell as new TableCell
Dim row as new TableRow
row.controls.add(cell)
Dim table as New table
table.controls.add(row)
me.controls.add(table)


Yo should get the idea.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

12 Experts available now in Live!

Get 1:1 Help Now