F
fniles
In a table cell, I would like to put in something like "1 2 3" where each
number is a hyperlink like so:
<tr>
<td width="100%" align="center">
<a href="page_1.htm">1</a>
<a href="page_2.htm">2</a>
<a href="page_3.htm">3</a>
</td>
</tr>
How can I do that within the ASP server code using tablecell, tablerow, etc
? Thank you.
Dim tempCell As New TableCell
Dim Row As New TableRow
Dim MyHyperlink As New HyperLink
MyHyperlink.NavigateUrl = sUrl & "?ID=" & lID
MyHyperlink.Text = sText
tempCell.Controls.Add(MyHyperlink)
Row.Cells.Add(tempCell)
tbl.Rows.Add(Row)
number is a hyperlink like so:
<tr>
<td width="100%" align="center">
<a href="page_1.htm">1</a>
<a href="page_2.htm">2</a>
<a href="page_3.htm">3</a>
</td>
</tr>
How can I do that within the ASP server code using tablecell, tablerow, etc
? Thank you.
Dim tempCell As New TableCell
Dim Row As New TableRow
Dim MyHyperlink As New HyperLink
MyHyperlink.NavigateUrl = sUrl & "?ID=" & lID
MyHyperlink.Text = sText
tempCell.Controls.Add(MyHyperlink)
Row.Cells.Add(tempCell)
tbl.Rows.Add(Row)