I'm not sure until I make a database call how many links I will need on a page and where the links point to. Thus, I need to create 'x' number of links within a div tag on the front end. Any ideas how this can be achieved?
Heres what I tried -
foreach (KeyValuePair<string, string> kvp in attachments)
{
HyperLink hyp = new HyperLink();
hyp.ID = kvp.Key;
hyp.Text = kvp.Value;
attachmentHiddenDiv.Controls.Add(hyp);
}