?
Solved

create table/rows from code behind

Posted on 2006-11-04
3
Medium Priority
?
1,431 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 100 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 100 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month14 days, 2 hours left to enroll

809 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