Solved

create table/rows from code behind

Posted on 2006-11-04
3
1,426 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

730 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