That's true. There's no such constructor of HyperLink
that takes in a StringBuilder
as a parameter. Instead of using a StringBuilder
you should use plain OOP by using the HyperLink
class, that's what it is for. Do this instead...
//create the HyperLink control
HyperLink link = new HyperLink();
//set the related properties
link.ID = subjectid;
link.ImageUrl = iconUrl;
link.NavigateUrl = "~/Webform2.aspx";
link.Text = "HyperLink";
//add it to the cell's control collection
tCell.Controls.Add(link);