Reputation: 810
I am very statically trying to place hyperlinks into datagrid table rows. Because there are multiple datagrids on my page created by a repeater, not every datagrid (or column) requires a hyperlink. Currently I am doing this:
foreach (DataRow row in tableCopy.Rows)
{
row[3] = "<a href:'" + row[3] + "/rev/" + row[1] + "'>" + "test" + "</a>";
}
On the page the hyperlinks appear, but when I go to press one the windows text cursor appears:
I am new to asp.net and web programming in general. How can I make these actual click-able links? Thank you.
Upvotes: 0
Views: 43
Reputation: 453
row[3] = "<a href='" + row[3] + "/rev/" + row[1] + "'>" + "test" + "</a>";
I believe the colon after "href" is whats preventing you from clickable links. Change the colon to an "="
Upvotes: 1