如何在动态表格单元格里的超连接
现在动态能生成表格了,请问如何在内容里超连接
int numrows;
int numcells;
int i = 0;
int j = 0;
int row = 0;
TableRow r;
TableCell c;
// WebStudentWS.CJSHSHQ j;
numrows = cjsh.cj.Length;//行获取他的维数
numcells = 8;//列
foreach (WebStudentWS.CJSHSHQ jx in cjsh .cj)
{
//for (i = 0; i < numrows; i++)//循环行
//{
string[] collect ={jx.JSHXX .JSHMCH .ToString (),jx.SHQSHJ .ToString (),jx.SHYSHJ .ToString (), jx.JSHSHJ .ToString (),jx.SHYYT .ToString (),jx.SHPSHJ.ToString (),jx.BZH .ToString (),jx.SHP .JSHXM .ToString ()};
// string[] bx;
r = new TableRow();
row += 1;
for (j = 0; j < numcells; j++)
{
HyperLinkColumn pc = new HyperLinkColumn();
HtmlAnchor ha = new HtmlAnchor();
HyperLinkField fi =new HyperLinkField ();
c = new TableCell();
c.Controls.Add(new LiteralControl(collect[j]));