Link to home
Start Free TrialLog in
Avatar of jitganguly
jitganguly

asked on

Table row does not appear

Hi,
Want to add my dynamic hyperlinks withihn table cell . The table, rows,columsn does not appear at all

Any suggestions ?

System.Web.UI.WebControls.HyperLink h;

                        Table tblLinks;
                        TableRow tr;
                        TableCell tc;
                         tblLinks = new Table();
                        while (dxReport.Read())
                        {
                                tr = new TableRow();
                                tc = new TableCell();

                                h = new HyperLink();
                                h.NavigateUrl = dxReport[0].ToString();
                                h.Text = dxReport[0].ToString();
                                tc.Controls.Add(h);
                                tr.Cells.Add(tc);
                                tblLinks.Rows.Add(tr);

                                Page.Controls.Add(h);
                                                       
                        }

ASKER CERTIFIED SOLUTION
Avatar of Snarf0001
Snarf0001
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jitganguly
jitganguly

ASKER

Oh my God

Thanks
lol

no problem.