Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

dynamically add rows for table ?

$
0
0

Hello

i have below code. My problem is that

1-) When i click link and new page be open then i come back first page, rows of tables removed. There is a way to save my rows of table ?

2-) When i click search button, i see same rows. but it shoulld add rows bottom of table. How can i do that ?

Thanks

HtmlTableRow row = new HtmlTableRow();
            row.EnableViewState = true;
            HtmlTableCell cell1 = new HtmlTableCell();
            HtmlTableCell cell2 = new HtmlTableCell();
            cell1.InnerHtml = @"<iframe   class='youtube-player'
                                  type='text/html' width='180' height='135'
                                    src="+ Convert.ToString(dt.Rows[i]["videoname"])+@"
                                     allowfullscreen frameborder='0'></iframe>";
            cell2.InnerHtml = @"<a href='watch.aspx?FileID=" + Convert.ToString(dt.Rows[i]["videoname"]) + @"'
style='border-width:0px; border-spacing:0px;'>" + Convert.ToString(dt.Rows[i]["gamer"]) + @" | " + Convert.ToString(dt.Rows[i]["team"]) + @" - " + Convert.ToString(dt.Rows[i]["otherteam"]) + @"<br />"+ String.Format(new System.Globalization.CultureInfo("en-US"), "{0:MMM dd, yyyy}", Convert.ToString(dt.Rows[i]["datet"])) + @"</a>";
            row.Cells.Add(cell1);
            row.Cells.Add(cell2);
            videolist.Rows.Add(row);


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>