private MakeLinkCellForRow ( string text, int groupId, Color textColor ) : TableCell | ||
text | string | The messages to display in the link |
groupId | int | The ID of the Group this cell should link to the edit page of |
textColor | Color | |
return | TableCell |
private TableCell MakeLinkCellForRow(string text, int groupId, Color textColor)
{
TableCell newCell = new TableCell();
HyperLink textLink = new HyperLink();
textLink.Text = text;
textLink.ForeColor = textColor;
textLink.NavigateUrl = "~/Groups/GroupDisplay.aspx?ID=" + groupId;
newCell.Controls.Add(textLink);
return newCell;
}