在页面加载时在vb.net中创建动态表 [英] dynamic table creation in vb.net on page loading
本文介绍了在页面加载时在vb.net中创建动态表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请帮助我使用vb.net
please help me to create a dynamic table in aspx using vb.net
推荐答案
请检查以下内容:
Please check this:
string a = "<Table>";
foreach (var item in collection)
{
a += "<tr><td>" + item.Var1 + "</tr></td>";
a += "<tr><td>" + item.Var2 + "</tr></td>";
a += "<tr><td>" + item.Var3 + "</tr></td>";
}
a += "</table>"
Response.Write(a);
或
在ASP.NET中使用GridView ListView控件
OR
Use GridView ListView Controls in ASP.NET
这篇关于在页面加载时在vb.net中创建动态表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文