If you want to generate controls dynamically and should not have these PostBack on the server (i.e. when the control is pressed / changed, it will return to the same page) - you can use the controls in System.Web.UI.HtmlControls .
eg,
HtmlAnchor link = new HtmlAnchor();
link.href = "www.stackoverflow.com";
Page.Controls.Add(link);
Hope this gives you enough background.
EDIT: you can use the above code in a loop and replace the fixed value with what comes from the database / object.
source
share