amza
amza

Reputation: 810

Placing Hyperlinks in DataGrid

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: 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

Answers (1)

Ryan Beaulieu
Ryan Beaulieu

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

Related Questions